Fix build by using buildscript pattern instead of plugin DSL

This commit is contained in:
Dave the Dev 2026-04-18 15:05:51 +00:00
parent 047433fe60
commit e4a51ed9f8

View File

@ -1,9 +1,19 @@
plugins { buildscript {
id 'java' repositories {
id 'org.springframework.boot' version '3.4.5' mavenCentral()
id 'io.spring.dependency-management' version '1.1.7' }
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:3.4.5")
}
} }
plugins {
id 'java'
id 'io.spring.dependency-management' version '1.1.7'
}
apply plugin: 'org.springframework.boot'
group = 'com.hithomelabs' group = 'com.hithomelabs'
version = '0.0.1-SNAPSHOT' version = '0.0.1-SNAPSHOT'
@ -45,9 +55,10 @@ repositories {
dependencies { dependencies {
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.5' implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.5'
implementation group: 'org.springframework.boot', name:'spring-boot-starter-oauth2-client', version: '3.5.5' implementation group: 'org.springframework.boot', name:'spring-boot-starter-oauth2-client', version: '3.5.5'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok:1.18.30' compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30' annotationProcessor 'org.projectlombok:lombok:1.18.30'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test' testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' testRuntimeOnly 'org.junit.platform:junit-platform-launcher'