diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ea292f1..c482344 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,8 +1,8 @@ plugins { - id("org.springframework.boot") version "3.3.4" - id("io.spring.dependency-management") version "1.1.6" + alias(libs.plugins.spring.boot) + alias(libs.plugins.spring.dependency.management) java - id("com.github.ben-manes.versions") version "0.51.0" + alias(libs.plugins.dependency.version.checker) } group = "com.github.devcordde" @@ -19,13 +19,8 @@ repositories { mavenCentral() } -dependencyManagement { - imports { - mavenBom("org.springframework.boot:spring-boot-dependencies:3.3.4") - } -} - dependencies { + implementation(platform(libs.spring.boot.dependencies)) implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-webflux") implementation("org.springframework.boot:spring-boot-starter-actuator") @@ -34,23 +29,18 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter-thymeleaf") implementation("org.thymeleaf.extras:thymeleaf-extras-springsecurity6") implementation("org.springframework.boot:spring-boot-starter-oauth2-client") - implementation("com.google.code.findbugs:jsr305:3.0.2") + implementation(libs.find.bugs) - implementation("org.webjars:webjars-locator:0.52") - implementation("org.webjars:webjars-locator-core:0.59") + implementation(libs.webjars.locator) + implementation(libs.webjars.locator.core) - runtimeOnly("org.webjars.npm:vue:2.7.16") { + runtimeOnly(libs.vue) { exclude(group = "org.webjars.npm", module = "vue__compiler-sfc") } runtimeOnly("org.webjars.npm:vuetify:2.7.0") runtimeOnly("org.webjars.npm:vue-router:3.5.3") implementation("org.webjars:material-design-icons:4.0.0") - - - - - compileOnly("org.springframework.boot:spring-boot-configuration-processor") annotationProcessor("org.springframework.boot:spring-boot-configuration-processor") diff --git a/app/gradle/libs.versions.toml b/app/gradle/libs.versions.toml new file mode 100644 index 0000000..5f3082f --- /dev/null +++ b/app/gradle/libs.versions.toml @@ -0,0 +1,40 @@ +[versions] + + +spring-dependency-management = "1.1.6" +dependency-version-checker = "0.51.0" + + +spring-boot = "3.3.4" +jsr = "3.0.2" + +webjars-locator = "0.52" +webjars-locator-core = "0.59" + +vue = "2.7.16" +vue-router = "3.5.3" +vuetify = "2.7.0" +material-design-icons = "4.0.0" + + + +[libraries] + +find-bugs = { group = "com.google.code.findbugs", name = "jsr305", version.ref = "jsr" } + +webjars-locator = { group = "org.webjars", name = "webjars-locator", version.ref = "webjars-locator" } +webjars-locator-core = { group = "org.webjars", name = "webjars-locator-core", version.ref = "webjars-locator-core" } + +vue = { group = "org.webjars.npm", name = "vue", version.ref = "vue" } + + + +spring-boot-dependencies = { group = "org.springframework.boot", name = "spring-boot-dependencies", version.ref = "spring-boot" } + + + +[plugins] + +spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" } +spring-dependency-management = { id = "io.spring.dependency-management", version.ref = "spring-dependency-management" } +dependency-version-checker = { id = "com.github.ben-manes.versions", version.ref = "dependency-version-checker" }