Skip to content

Commit

Permalink
Merge pull request #11 from embulk/gradle-version-catalog
Browse files Browse the repository at this point in the history
Start using Gradle's version catalog
  • Loading branch information
dmikurube authored May 29, 2024
2 parents a4b22fe + 79968b4 commit f1a2b48
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "java"
id "java-gradle-plugin"
id "checkstyle"
id "com.gradle.plugin-publish" version "1.2.0"
alias(libs.plugins.gradle.plugin.publish)
}

repositories {
Expand Down Expand Up @@ -32,8 +32,9 @@ dependencies {
implementation gradleApi()

testImplementation gradleTestKit()
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.8.2"
testImplementation platform(libs.junit5.bom)
testImplementation libs.bundles.junit5.implementation
testRuntimeOnly libs.bundles.junit5.runtime
}

jar {
Expand Down
25 changes: 25 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[versions]

gradle-plugin-publish = "1.2.0"

junit5 = "5.8.2"

[libraries]

junit5-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit5" }
junit5-api = { group = "org.junit.jupiter", name = "junit-jupiter-api" }
junit5-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine" }

[bundles]

junit5-implementation = [
"junit5-api",
]

junit5-runtime = [
"junit5-engine",
]

[plugins]

gradle-plugin-publish = { id = "com.gradle.plugin-publish", version.ref = "gradle-plugin-publish" }

0 comments on commit f1a2b48

Please sign in to comment.