Skip to content

Commit

Permalink
migrating to version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicklamprecht committed Sep 26, 2024
1 parent 90fe153 commit 4d93275
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 36 deletions.
49 changes: 13 additions & 36 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -19,47 +19,24 @@ repositories {
mavenCentral()
}

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.3.4")
}
}

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")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
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(platform(libs.spring.boot.dependencies))
implementation(libs.bundles.spring.boot.starter)
implementation(libs.find.bugs)

implementation("org.webjars:webjars-locator:0.52")
implementation("org.webjars:webjars-locator-core:0.59")
implementation(libs.bundles.webjars.locator)

runtimeOnly("org.webjars.npm:vue:2.7.16") {
runtimeOnly(libs.bundles.webjars.dependencies) {
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")
compileOnly(libs.spring.boot.configuration.processors)
annotationProcessor(libs.spring.boot.configuration.processors)

developmentOnly("org.springframework.boot:spring-boot-devtools")
runtimeOnly("com.h2database:h2")
runtimeOnly("org.postgresql:postgresql")
developmentOnly(libs.spring.boot.devtools)
runtimeOnly(libs.bundles.databases)

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation(libs.bundles.spring.test)
}

tasks {
Expand Down
80 changes: 80 additions & 0 deletions app/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[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" }
vuetify = { group = "org.webjars.npm", name = "vuetify", version.ref = "vuetify" }
vue-router = { group = "org.webjars.npm", name = "vue-router", version.ref = "vue-router" }
material-icons = { group = "org.webjars", name = "material-design-icons", version.ref = "material-design-icons" }

spring-boot-dependencies = { group = "org.springframework.boot", name = "spring-boot-dependencies", version.ref = "spring-boot" }

spring-boot-starter-web = { group = "org.springframework.boot", name = "spring-boot-starter-web" }
spring-boot-starter-webflux = { group = "org.springframework.boot", name = "spring-boot-starter-webflux" }
spring-boot-starter-actuator = { group = "org.springframework.boot", name = "spring-boot-starter-actuator" }
spring-boot-starter-data-jpa = { group = "org.springframework.boot", name = "spring-boot-starter-data-jpa" }
spring-boot-starter-security = { group = "org.springframework.boot", name = "spring-boot-starter-security" }
spring-boot-starter-thymeleaf = { group = "org.springframework.boot", name = "spring-boot-starter-thymeleaf" }
spring-boot-starter-oauth2-client = { group = "org.springframework.boot", name = "spring-boot-starter-oauth2-client" }

thymeleaf-extras-springsecurity = { group = "org.thymeleaf.extras", name = "thymeleaf-extras-springsecurity6" }

h2 = { group = "com.h2database", name = "h2"}
postgresql = { group = "org.postgresql", name = "postgresql"}

spring-boot-configuration-processors = { group = "org.springframework.boot", name = "spring-boot-configuration-processor" }

spring-boot-devtools = { group = "org.springframework.boot", name = "spring-boot-devtools"}


spring-boot-starter-test = { group = "org.springframework.boot", name = "spring-boot-starter-test"}
spring-security-test = { group = "org.springframework.security", name = "spring-security-test"}


[bundles]
spring-boot-starter = [
"spring-boot-starter-actuator",
"spring-boot-starter-data-jpa",
"spring-boot-starter-oauth2-client",
"spring-boot-starter-security",
"spring-boot-starter-thymeleaf",
"spring-boot-starter-web",
"spring-boot-starter-webflux",
"thymeleaf-extras-springsecurity"
]

databases = [ "h2", "postgresql"]

spring-test = ["spring-boot-starter-test", "spring-security-test"]

webjars-locator = ["webjars-locator", "webjars-locator-core"]
webjars-dependencies = ["vue-router", "vuetify", "vue", "material-icons"]


[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" }

0 comments on commit 4d93275

Please sign in to comment.