Skip to content

Commit 10f99e4

Browse files
authored
Merge pull request #147 from datastax/gradle-8.1
Upgrade gradle to 8.1
2 parents 3db4951 + 6bba115 commit 10f99e4

File tree

8 files changed

+19
-25
lines changed

8 files changed

+19
-25
lines changed

agent-c3/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ plugins {
88
}
99

1010
application {
11-
mainClassName = "$mainClassName"
11+
mainClass = "$mainClassName"
1212
}
13-
configurations.implementation.canBeResolved = true
14-
configurations.compileOnly.canBeResolved = true
1513

1614
jar {
1715
duplicatesStrategy = DuplicatesStrategy.INCLUDE

agent-c4/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ plugins {
88
}
99

1010
application {
11-
mainClassName = "$mainClassName"
11+
mainClass = "$mainClassName"
1212
}
1313

14-
configurations.implementation.canBeResolved = true
15-
configurations.compileOnly.canBeResolved = true
1614
jar {
1715
duplicatesStrategy = DuplicatesStrategy.INCLUDE
1816
manifest {
@@ -82,7 +80,7 @@ test {
8280
systemProperty "projectVersion", project.version
8381
}
8482

85-
dockerPrepare.dependsOn(shadowJar)
83+
dockerPrepare.dependsOn(jar, shadowJar)
8684
docker {
8785
name "${dockerRepo}cassandra:${cassandra4Version}-cdc"
8886
files "$buildDir/libs/", "src/docker/"

agent-dse4/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
application {
11-
mainClassName = "$mainClassName"
11+
mainClass = "$mainClassName"
1212
}
1313

1414
jar {
@@ -90,7 +90,7 @@ shadowJar {
9090
jar.enabled = true
9191
assemble.dependsOn(shadowJar)
9292

93-
dockerPrepare.dependsOn(shadowJar)
93+
dockerPrepare.dependsOn(jar, shadowJar)
9494
docker {
9595
name "${dockerRepo}dse4-server:${dse4Version}-cdc"
9696
files "$buildDir/libs/", "src/docker/"

agent/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ dependencies {
1616
implementation("${pulsarGroup}:pulsar-client:${pulsarVersion}")
1717
}
1818

19+
test {
20+
// see https://junit-pioneer.org/docs/environment-variables/#warnings-for-reflective-access
21+
jvmArgs "--add-opens=java.base/java.util=ALL-UNNAMED"
22+
}
23+
1924
// generate agent parameters documentation
2025
application {
21-
mainClassName = "com.datastax.oss.cdc.agent.AgentConfig"
26+
mainClass = "com.datastax.oss.cdc.agent.AgentConfig"
2227
}
2328

backfill-cli/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tasks.register('nar', Zip) {
105105
dependsOn shadowJar
106106

107107
// bundle the shadow jar as is
108-
from(shadowJar.archivePath) {
108+
from(shadowJar.archiveFile) {
109109
into "META-INF/bundled-dependencies"
110110
}
111111

@@ -121,8 +121,8 @@ tasks.register('nar', Zip) {
121121
// explicitly include all files in the resources folder, otherwise the shadowJar will not include them
122122
sourceSets.main.resources.include("**/*")
123123

124-
archiveName "pulsar-cassandra-admin-${project.version}-nar.nar"
125-
destinationDir file("${buildDir}/libs")
124+
archiveFileName = "pulsar-cassandra-admin-${project.version}-nar.nar"
125+
destinationDirectory = file("${buildDir}/libs")
126126
}
127127

128128
assemble.dependsOn(nar)

build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ plugins {
55
id 'java'
66
id 'idea'
77
id 'application'
8-
id "net.ltgt.apt-idea" version "0.21"
98
id "com.dorongold.task-tree" version "2.1.0"
109
id "jacoco"
1110
id "com.gorylenko.gradle-git-properties" version "2.3.1"
@@ -16,15 +15,14 @@ plugins {
1615
id 'com.github.jk1.dependency-license-report'
1716
id "com.github.johnrengelman.shadow" apply false
1817
id "io.github.lhotari.gradle-nar-plugin" apply false
19-
id 'com.palantir.docker' version '0.30.0' apply false
18+
id 'com.palantir.docker' version '0.35.0' apply false
2019
id 'docker-compose' apply false
2120
}
2221

2322
allprojects {
2423
repositories {
2524
mavenLocal()
2625
mavenCentral()
27-
jcenter() // or Maven central, required for Lombok dependency
2826
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
2927
maven { url "https://packages.confluent.io/maven/" }
3028
maven { url "https://repo.typesafe.com/typesafe/releases/" }
@@ -112,9 +110,9 @@ subprojects {
112110

113111
jacocoTestReport {
114112
reports {
115-
html.enabled = true
116-
xml.enabled = true
117-
csv.enabled = false
113+
html.required = true
114+
xml.required = true
115+
csv.required = false
118116
}
119117
}
120118

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Tue Jan 12 12:33:20 CET 2021
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ buildscript {
77
classpath "io.github.lhotari.gradle-nar-plugin:gradle-nar-plugin:0.5.1"
88
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
99
classpath "com.avast.gradle:gradle-docker-compose-plugin:0.14.9"
10-
11-
// workaround for issue https://github.com/n0mer/gradle-git-properties/issues/195
12-
classpath("org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r") {
13-
force = true
14-
}
1510
}
1611
}
1712

0 commit comments

Comments
 (0)