13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
-
16
+ import org.gradle.util.DistributionLocator
17
+ import org.gradle.util.GradleVersion
17
18
import org.gradle.util.VersionNumber
18
19
19
20
plugins {
@@ -34,15 +35,15 @@ plugins {
34
35
}
35
36
36
37
repositories {
37
- jcenter ()
38
+ mavenCentral ()
38
39
}
39
40
40
41
sourceCompatibility = JavaVersion . VERSION_11
41
42
targetCompatibility = JavaVersion . VERSION_11
42
43
43
44
ext {
44
45
kafkaVersion = " 2.0.1"
45
- testcontainersVersion = " 1.15.1 "
46
+ testcontainersVersion = " 1.16.3 "
46
47
debeziumVersion = " 1.3.0.Final"
47
48
}
48
49
@@ -55,11 +56,24 @@ distributions {
55
56
}
56
57
}
57
58
59
+ wrapper {
60
+ distributionType = ' ALL'
61
+ doLast {
62
+ final DistributionLocator locator = new DistributionLocator ()
63
+ final GradleVersion version = GradleVersion . version(wrapper. gradleVersion)
64
+ final URI distributionUri = locator. getDistributionFor(version, wrapper. distributionType. name(). toLowerCase(Locale . ENGLISH ))
65
+ final URI sha256Uri = new URI (distributionUri. toString() + " .sha256" )
66
+ final String sha256Sum = new String (sha256Uri. toURL(). bytes)
67
+ wrapper. getPropertiesFile() << " distributionSha256Sum=${ sha256Sum} \n "
68
+ println " Added checksum to wrapper properties"
69
+ }
70
+ }
71
+
58
72
sourceSets {
59
73
integrationTest {
60
74
java. srcDir file(' src/integration-test/java' )
61
75
resources. srcDir file(' src/integration-test/resources' )
62
- compileClasspath + = sourceSets. main. output + configurations. testRuntime
76
+ compileClasspath + = sourceSets. main. output + configurations. testRuntimeClasspath
63
77
runtimeClasspath + = output + compileClasspath
64
78
}
65
79
}
@@ -73,24 +87,24 @@ idea {
73
87
74
88
configurations {
75
89
integrationTestImplementation. extendsFrom testImplementation
76
- integrationTestRuntime. extendsFrom testRuntime
90
+ integrationTestRuntime. extendsFrom testRuntimeOnly
77
91
}
78
92
79
93
dependencies {
80
94
compileOnly " org.apache.kafka:connect-api:$kafkaVersion "
81
95
compileOnly " io.debezium:debezium-api:$debeziumVersion "
82
96
83
- implementation " org.slf4j:slf4j-api:1.7.25 "
97
+ implementation " org.slf4j:slf4j-api:1.7.33 "
84
98
85
- testImplementation " org.junit.jupiter:junit-jupiter:5.5.1 "
86
- testImplementation " org.hamcrest:hamcrest:2.1 "
99
+ testImplementation " org.junit.jupiter:junit-jupiter:5.8.2 "
100
+ testImplementation " org.hamcrest:hamcrest:2.2 "
87
101
testImplementation " org.apache.kafka:connect-api:$kafkaVersion "
88
102
testImplementation " org.testcontainers:junit-jupiter:$testcontainersVersion "
89
103
testImplementation " io.debezium:debezium-api:$debeziumVersion "
90
104
91
- testRuntime " org.apache.logging.log4j:log4j-slf4j-impl:2.12 .1"
92
- testRuntime " org.apache.logging.log4j:log4j-api:2.12 .1"
93
- testRuntime " org.apache.logging.log4j:log4j-core:2.12 .1"
105
+ testRuntimeOnly " org.apache.logging.log4j:log4j-slf4j-impl:2.17 .1"
106
+ testRuntimeOnly " org.apache.logging.log4j:log4j-api:2.17 .1"
107
+ testRuntimeOnly " org.apache.logging.log4j:log4j-core:2.17 .1"
94
108
95
109
integrationTestImplementation " org.apache.kafka:connect-api:$kafkaVersion "
96
110
integrationTestImplementation(" org.apache.kafka:connect-runtime:$kafkaVersion " ) {
0 commit comments