File tree Expand file tree Collapse file tree 3 files changed +59
-4
lines changed
Expand file tree Collapse file tree 3 files changed +59
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ plugins {
22 id " java"
33 id " maven-publish"
44 id " signing"
5- id " org.embulk.embulk- plugins" version " 0.5.5 "
5+ alias(libs . plugins. gradle . embulk . plugins)
66 id " checkstyle"
77}
88
@@ -34,10 +34,12 @@ java {
3434}
3535
3636dependencies {
37- compileOnly " org .embulk:embulk-spi:0.11 "
38- compileOnly " org .slf4j:slf4j-api:2.0.7 "
37+ compileOnly libs . embulk. spi
38+ compileOnly libs . slf4j
3939
40- implementation " org.embulk:embulk-util-config:0.3.4"
40+ implementation libs. embulk. util. config
41+ implementation libs. validation
42+ implementation libs. bundles. jackson
4143}
4244
4345embulkPlugin {
@@ -64,6 +66,19 @@ javadocJar {
6466 }
6567}
6668
69+ // A safer and strict alternative to: "dependencies" (and "dependencies --write-locks")
70+ //
71+ // This task fails explicitly when the specified dependency is not available.
72+ // In contrast, "dependencies (--write-locks)" does not fail even when a part the dependencies are unavailable.
73+ //
74+ // https://docs.gradle.org/8.7/userguide/dependency_locking.html#generating_and_updating_dependency_locks
75+ task checkDependencies {
76+ notCompatibleWithConfigurationCache(" The task \" checkDependencies\" filters configurations at execution time." )
77+ doLast {
78+ configurations. findAll { it. canBeResolved }. each { it. resolve() }
79+ }
80+ }
81+
6782publishing {
6883 publications {
6984 maven(MavenPublication ) {
Original file line number Diff line number Diff line change 1+ [versions ]
2+
3+ gradle-embulk-plugins = " 0.7.0"
4+
5+ embulk-spi = " 0.11"
6+ slf4j-api = " 2.0.7"
7+
8+ embulk-util-config = " 0.3.4"
9+ validation-api = " 1.1.0.Final"
10+
11+ jackson = " 2.6.7"
12+ jackson-databind = " 2.6.7.5"
13+
14+ [libraries ]
15+
16+ embulk-spi = { group = " org.embulk" , name = " embulk-spi" , version.ref = " embulk-spi" }
17+ slf4j = { group = " org.slf4j" , name = " slf4j-api" , version.ref = " slf4j-api" }
18+ embulk-util-config = { group = " org.embulk" , name = " embulk-util-config" , version.ref = " embulk-util-config" }
19+ validation = { group = " javax.validation" , name = " validation-api" , version.ref = " validation-api" }
20+ jackson-annotations = { group = " com.fasterxml.jackson.core" , name = " jackson-annotations" , version.ref = " jackson" }
21+ jackson-core = { group = " com.fasterxml.jackson.core" , name = " jackson-core" , version.ref = " jackson" }
22+ jackson-databind = { group = " com.fasterxml.jackson.core" , name = " jackson-databind" , version.ref = " jackson-databind" }
23+ jackson-datatype-jdk8 = { group = " com.fasterxml.jackson.datatype" , name = " jackson-datatype-jdk8" , version.ref = " jackson" }
24+
25+ [bundles ]
26+
27+ jackson = [
28+ " jackson-annotations" ,
29+ " jackson-core" ,
30+ " jackson-databind" ,
31+ " jackson-datatype-jdk8" ,
32+ ]
33+
34+ [plugins ]
35+
36+ gradle-embulk-plugins = { id = " org.embulk.embulk-plugins" , version.ref = " gradle-embulk-plugins" }
Original file line number Diff line number Diff line change 1+ # This is a Gradle generated file for dependency locking.
2+ # Manual edits can break the build and are not advised.
3+ # This file is expected to be part of source control.
4+ empty=incomingCatalogForLibs0
You can’t perform that action at this time.
0 commit comments