diff --git a/build.gradle b/build.gradle index 7f2f722..051563c 100644 --- a/build.gradle +++ b/build.gradle @@ -20,17 +20,22 @@ repositories { } dependencies { - compileOnly "org.projectlombok:lombok:$LIB_LOMBOK_VERSION" - annotationProcessor "org.projectlombok:lombok:$LIB_LOMBOK_VERSION" + compileOnly libs.lombok + annotationProcessor libs.lombok - testCompileOnly "org.projectlombok:lombok:$LIB_LOMBOK_VERSION" - testAnnotationProcessor "org.projectlombok:lombok:$LIB_LOMBOK_VERSION" - testImplementation platform("org.junit:junit-bom:$LIB_JUNIT_BOM") - testImplementation 'org.junit.jupiter:junit-jupiter' + testCompileOnly libs.lombok + testAnnotationProcessor libs.lombok + + testImplementation platform(libs.junit.bom) + testImplementation libs.junit } -test { - useJUnitPlatform() +testing { + suites { + test { + useJUnitJupiter() + } + } } signing { diff --git a/gradle.properties b/gradle.properties index 384242f..0c27bb7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,4 @@ -LIB_LOMBOK_VERSION=1.18.30 -LIB_JUNIT_BOM=5.9.1 -LIB_SLF4J_API=2.0.9 +org.gradle.console=verbose signing.keyId= signing.password= @@ -8,4 +6,3 @@ signing.secretKeyRingFile= mavenUsername= mavenPassword= - diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..a0e68fe --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,13 @@ +[versions] +lombok="1.18.30" +junit-bom="5.9.1" + +[libraries] +lombok = { module = "org.projectlombok:lombok", version.ref = "lombok" } +junit-bom = { module = "org.junit:junit-bom", version.ref = "junit-bom" } +junit = { module = "org.junit.jupiter:junit-jupiter" } + +[plugins] +# example +# spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" } +# usage: alias(libs.plugins.spring.boot)