1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16-
16+ import org.gradle.util.DistributionLocator
17+ import org.gradle.util.GradleVersion
1718import org.gradle.util.VersionNumber
1819
1920plugins {
@@ -34,15 +35,15 @@ plugins {
3435}
3536
3637repositories {
37- jcenter ()
38+ mavenCentral ()
3839}
3940
4041sourceCompatibility = JavaVersion . VERSION_11
4142targetCompatibility = JavaVersion . VERSION_11
4243
4344ext {
4445 kafkaVersion = " 2.0.1"
45- testcontainersVersion = " 1.15.1 "
46+ testcontainersVersion = " 1.16.3 "
4647 debeziumVersion = " 1.3.0.Final"
4748}
4849
@@ -55,11 +56,24 @@ distributions {
5556 }
5657}
5758
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+
5872sourceSets {
5973 integrationTest {
6074 java. srcDir file(' src/integration-test/java' )
6175 resources. srcDir file(' src/integration-test/resources' )
62- compileClasspath + = sourceSets. main. output + configurations. testRuntime
76+ compileClasspath + = sourceSets. main. output + configurations. testRuntimeClasspath
6377 runtimeClasspath + = output + compileClasspath
6478 }
6579}
@@ -73,24 +87,24 @@ idea {
7387
7488configurations {
7589 integrationTestImplementation. extendsFrom testImplementation
76- integrationTestRuntime. extendsFrom testRuntime
90+ integrationTestRuntime. extendsFrom testRuntimeOnly
7791}
7892
7993dependencies {
8094 compileOnly " org.apache.kafka:connect-api:$kafkaVersion "
8195 compileOnly " io.debezium:debezium-api:$debeziumVersion "
8296
83- implementation " org.slf4j:slf4j-api:1.7.25 "
97+ implementation " org.slf4j:slf4j-api:1.7.33 "
8498
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 "
87101 testImplementation " org.apache.kafka:connect-api:$kafkaVersion "
88102 testImplementation " org.testcontainers:junit-jupiter:$testcontainersVersion "
89103 testImplementation " io.debezium:debezium-api:$debeziumVersion "
90104
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"
94108
95109 integrationTestImplementation " org.apache.kafka:connect-api:$kafkaVersion "
96110 integrationTestImplementation(" org.apache.kafka:connect-runtime:$kafkaVersion " ) {
0 commit comments