From f0d260e8ec6a8f0e1a890415be6577484b7807fe Mon Sep 17 00:00:00 2001 From: Dai MIKURUBE Date: Thu, 18 Apr 2024 15:03:03 +0900 Subject: [PATCH] Start using Gradle's version catalog --- build.gradle | 10 ++++++---- gradle/libs.versions.toml | 25 +++++++++++++++++++++++++ settings-gradle.lockfile | 4 ++++ 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 gradle/libs.versions.toml create mode 100644 settings-gradle.lockfile diff --git a/build.gradle b/build.gradle index 7c6ec5d..a922ef0 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..277846e --- /dev/null +++ b/gradle/libs.versions.toml @@ -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", +] diff --git a/settings-gradle.lockfile b/settings-gradle.lockfile new file mode 100644 index 0000000..709a43f --- /dev/null +++ b/settings-gradle.lockfile @@ -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