diff --git a/build.gradle b/build.gradle index e52b4d3..f8be54e 100644 --- a/build.gradle +++ b/build.gradle @@ -32,15 +32,16 @@ java { } dependencies { - compileOnly "org.embulk:embulk-spi:0.11" - implementation "org.embulk:embulk-util-config:0.5.0" - implementation "org.embulk:embulk-util-file:0.2.0" - // compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION" - - testImplementation "junit:junit:4.13.2" - testImplementation "org.embulk:embulk-core:0.11.3" - testImplementation "org.embulk:embulk-deps:0.11.3" - testImplementation "org.embulk:embulk-junit4:0.11.3" + compileOnly libs.embulk.spi + implementation libs.embulk.util.config + implementation libs.embulk.util.file + implementation platform(libs.jackson.bom) + implementation libs.bundles.jackson + + testImplementation libs.junit4 + testImplementation libs.embulk.core + testImplementation libs.embulk.deps + testImplementation libs.embulk.junit4 } embulkPlugin { diff --git a/gradle.lockfile b/gradle.lockfile index 4c3b846..e64d8de 100644 --- a/gradle.lockfile +++ b/gradle.lockfile @@ -1,11 +1,11 @@ # 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. -com.fasterxml.jackson.core:jackson-annotations:2.15.4=compileClasspath,runtimeClasspath -com.fasterxml.jackson.core:jackson-core:2.15.4=compileClasspath,runtimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.15.4=compileClasspath,runtimeClasspath -com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4=compileClasspath,runtimeClasspath -com.fasterxml.jackson:jackson-bom:2.15.4=compileClasspath,runtimeClasspath +com.fasterxml.jackson.core:jackson-annotations:2.16.2=compileClasspath,runtimeClasspath +com.fasterxml.jackson.core:jackson-core:2.16.2=compileClasspath,runtimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.16.2=compileClasspath,runtimeClasspath +com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.16.2=compileClasspath,runtimeClasspath +com.fasterxml.jackson:jackson-bom:2.16.2=compileClasspath,runtimeClasspath javax.validation:validation-api:2.0.1.Final=compileClasspath,runtimeClasspath org.embulk:embulk-spi:0.11=compileClasspath org.embulk:embulk-util-config:0.5.0=compileClasspath,runtimeClasspath diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..ab59dc9 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,43 @@ +[versions] + +gradle-embulk-plugins = "0.7.0" + +embulk-core = "0.11.3" +embulk-spi = "0.11" +embulk-util-config = "0.5.0" +embulk-util-file = "0.2.0" + +# See https://github.com/FasterXML/jackson/wiki/Jackson-Releases for Jackson versions. +# +# We choose Jackson with the latest patch release of the latest open branch. +jackson = "2.16.2" + +junit4 = "4.13.2" + +[libraries] + +embulk-core = { group = "org.embulk", name = "embulk-core", version.ref = "embulk-core" } +embulk-deps = { group = "org.embulk", name = "embulk-deps", version.ref = "embulk-core" } +embulk-junit4 = { group = "org.embulk", name = "embulk-junit4", version.ref = "embulk-core" } +embulk-spi = { group = "org.embulk", name = "embulk-spi", version.ref = "embulk-spi" } +embulk-util-config = { group = "org.embulk", name = "embulk-util-config", version.ref = "embulk-util-config" } +embulk-util-file = { group = "org.embulk", name = "embulk-util-file", version.ref = "embulk-util-file" } +jackson-annotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations" } +jackson-bom = { group = "com.fasterxml.jackson", name = "jackson-bom", version.ref = "jackson" } +jackson-core = { group = "com.fasterxml.jackson.core", name = "jackson-core" } +jackson-databind = { group = "com.fasterxml.jackson.core", name = "jackson-databind" } +jackson-datatype-jdk8 = { group = "com.fasterxml.jackson.datatype", name = "jackson-datatype-jdk8" } +junit4 = { group = "junit", name = "junit", version.ref = "junit4" } + +[bundles] + +jackson = [ + "jackson-annotations", + "jackson-core", + "jackson-databind", + "jackson-datatype-jdk8", +] + +[plugins] + +gradle-embulk-plugins = { id = "org.embulk.embulk-plugins", version.ref = "gradle-embulk-plugins" } 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