Skip to content

Commit

Permalink
migrate from bomVersionCatalog to Version Catalog Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
F43nd1r committed Sep 13, 2024
1 parent bb2e371 commit 31576a3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.
46 changes: 21 additions & 25 deletions acrarium/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,49 @@ plugins {
alias(libs.plugins.jooq)
}

configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "com.vaadin" && (requested.name.startsWith("flow") || requested.name.startsWith("vaadin"))) {
useVersion(libs.versions.vaadin.base.get())
}
}
}

dependencies {
implementation(libs.orgSpringframeworkBoot.springBootStarterWeb)
implementation(libs.orgSpringframeworkBoot.springBootStarterSecurity)
implementation(libs.orgSpringframeworkBoot.springBootStarterMail)
implementation(libs.orgSpringframeworkBoot.springBootStarterActuator)
implementation(libs.orgSpringframeworkBoot.springBootStarterJooq)
implementation(libs.comVaadin.vaadin)
implementation(libs.comVaadin.vaadinSpringBootStarter)
implementation(libs.comMysql.mysqlConnectorJ)
implementation(libs.orgLiquibase.liquibaseCore)
listOf(libs.spring.boot.bom, libs.vaadin.base.bom).forEach {
implementation(it)
testImplementation(it)
}
implementation(springLibs.spring.springBootStarterWeb)
implementation(springLibs.spring.springBootStarterSecurity)
implementation(springLibs.spring.springBootStarterMail)
implementation(springLibs.spring.springBootStarterActuator)
implementation(springLibs.spring.springBootStarterJooq)
implementation(vaadinLibs.vaadin.vaadin)
implementation(vaadinLibs.vaadin.vaadinSpringBootStarter)
implementation(springLibs.mysql.mysqlConnectorJ)
implementation(springLibs.liquibase.liquibaseCore)
implementation(libs.ektorp)
implementation(libs.acraJava)
implementation(libs.orgJson)
implementation(libs.commonsText)
implementation(libs.xbibTime)
implementation(libs.retrace)
implementation(libs.fuzzywuzzy)
implementation(libs.orgHibernateValidator.hibernateValidator)
implementation(springLibs.hibernate.hibernateValidator)
implementation(libs.ziplet)
implementation(libs.univocityParser)
implementation(libs.avatarGenerator)
implementation(libs.apexCharts)
implementation(libs.vaadin.paperMenuButton)
implementation(libs.kotlin.coroutines)
implementation(libs.comFasterxmlJacksonModule.jacksonModuleKotlin)
implementation(springLibs.jackson.jacksonModuleKotlin)
implementation(libs.kotlin.logging)
implementation(libs.springdoc)
implementation(libs.orgAspectj.aspectjweaver)
developmentOnly(libs.orgSpringframeworkBoot.springBootDevtools)
testImplementation(libs.orgSpringframeworkBoot.springBootStarterTest)
testImplementation(libs.orgSpringframeworkSecurity.springSecurityTest)
implementation(springLibs.aspectj.aspectjweaver)
developmentOnly(springLibs.spring.springBootDevtools)
testImplementation(springLibs.spring.springBootStarterTest)
testImplementation(springLibs.spring.springSecurityTest)
testImplementation(libs.spring.mockk)
testImplementation(libs.strikt)
testImplementation(libs.testContainers.mysql)
testImplementation(libs.testContainers.junit)
testImplementation(libs.karibu.testing)
testImplementation(libs.karibu.spring)
jooqGenerator(libs.comMysql.mysqlConnectorJ)
jooqGenerator(libs.orgYaml.snakeyaml)
jooqGenerator(springLibs.mysql.mysqlConnectorJ)
jooqGenerator(springLibs.yaml.snakeyaml)
jooqGenerator(projects.jooqHelper)
}

Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ kotlinPoet = "1.18.1"
testContainers = "1.20.1"
jooq = "3.18.5"
karibu = "2.1.6"
liquibase = "4.29.2"

[libraries]
spring-boot-bom = { module = "org.springframework.boot:spring-boot-dependencies", version.ref = "springBoot" }
Expand Down
15 changes: 9 additions & 6 deletions jooq-helper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ plugins {
}

dependencies {
libs.bundles.bom.get().map { implementation(platform(it)) }
implementation(libs.orgLiquibase.liquibaseCore)
implementation(libs.orgJooq.jooqMeta)
implementation(libs.orgSlf4j.slf4jApi)
implementation(libs.orgSlf4j.slf4jSimple)
implementation(libs.testContainers.mysql)
listOf(libs.spring.boot.bom).forEach {
implementation(it)
testImplementation(it)
}
implementation(springLibs.liquibase.liquibaseCore)
implementation(springLibs.jooq.jooqMeta)
implementation(springLibs.slf4j.slf4jApi)
implementation(springLibs.slf4j.slf4jSimple)
implementation(springLibs.testcontainers.mysql)
}

kotlin {
Expand Down
12 changes: 7 additions & 5 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import com.faendir.gradle.createWithBomSupport
import dev.aga.gradle.versioncatalogs.Generator.generate

pluginManagement {
repositories {
Expand All @@ -8,7 +8,7 @@ pluginManagement {
}
}
plugins {
id("com.faendir.gradle.bom-version-catalog") version "1.5.1"
id("dev.aga.gradle.version-catalog-generator") version ("2.0.0-beta.2")
}
dependencyResolutionManagement {
repositories {
Expand All @@ -21,9 +21,11 @@ dependencyResolutionManagement {
maven { setUrl("https://repository.apache.org/content/repositories/snapshots") }
}
versionCatalogs {
createWithBomSupport("libs") {
fromBomAlias("spring-boot-bom")
fromBomAlias("vaadin-base-bom")
generate("springLibs") {
from(toml("spring-boot-bom"))
}
generate("vaadinLibs") {
from(toml("vaadin-base-bom"))
}
}
}
Expand Down

0 comments on commit 31576a3

Please sign in to comment.