Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
+ Add versions catalog
+ Add test suit
  • Loading branch information
mrsaraira committed Oct 23, 2023
1 parent f50608f commit ef7bab5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
21 changes: 13 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
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=
signing.secretKeyRingFile=

mavenUsername=
mavenPassword=

13 changes: 13 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ef7bab5

Please sign in to comment.