Skip to content

Commit

Permalink
Merge pull request #20 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 Apr 18, 2024
2 parents 7368dd3 + f0d260e commit 113eab5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ java {

dependencies {
// Dependencies should be "api" so that their scope would be "compile" in "pom.xml".
api "org.embulk:embulk-util-rubytime:0.3.3"
api libs.embulk.util.rubytime

testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.9.2"
javadocOnly libs.joda.time

javadocOnly "joda-time:joda-time:2.10.2"
testImplementation platform(libs.junit5.bom)
testImplementation libs.bundles.junit5.implementation

testRuntimeOnly libs.bundles.junit5.runtime
}

javadoc {
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]

embulk-util-rubytime = "0.3.3"

joda-time = "2.10.2"

junit5 = "5.9.2"

[libraries]

embulk-util-rubytime = { group = "org.embulk", name = "embulk-util-rubytime", version.ref = "embulk-util-rubytime" }
joda-time = { group = "joda-time", name = "joda-time", version.ref = "joda-time" }
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",
]
4 changes: 4 additions & 0 deletions settings-gradle.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
empty=incomingCatalogForLibs0

0 comments on commit 113eab5

Please sign in to comment.