Skip to content

Commit dbaabe7

Browse files
authored
Merge pull request #1242 from bmuschko/bm/gradle-9
Upgrade to Gradle 9
2 parents 78fded9 + 69ef01c commit dbaabe7

16 files changed

Lines changed: 60 additions & 60 deletions

File tree

.github/workflows/linux-build-release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
with:
1616
distribution: 'zulu'
1717
java-version: 21
18+
- name: Clean Docker environment before tests
19+
run: |
20+
docker system prune -af --volumes
21+
docker builder prune -af
22+
continue-on-error: true
1823
- name: Set up Docker private registry
1924
run: |
2025
docker run -d -p 5000:5000 --restart=always --name registry registry:2
@@ -29,8 +34,12 @@ jobs:
2934
run: ./gradlew test
3035
- name: Integration tests
3136
run: ./gradlew integrationTest
32-
- name: Clean Docker cache
33-
run: docker builder prune -af --filter "until=24h"
37+
- name: Clean Docker cache before functional tests
38+
run: |
39+
docker system prune -af --volumes
40+
docker builder prune -af
41+
# Remove any dangling images that might have corrupted layers
42+
docker images --filter "dangling=true" -q | xargs -r docker rmi -f || true
3443
continue-on-error: true
3544
- name: Functional tests
3645
env:

buildSrc/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3+
14
plugins {
25
`kotlin-dsl`
36
`java-gradle-plugin`
@@ -17,9 +20,9 @@ java {
1720
targetCompatibility = JavaVersion.VERSION_11
1821
}
1922

20-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
21-
kotlinOptions {
22-
jvmTarget = "11"
23+
tasks.withType<KotlinCompile>().configureEach {
24+
compilerOptions {
25+
jvmTarget.set(JVM_11)
2326
}
2427
}
2528

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
org.gradle.caching=true
1+
org.gradle.caching=true
2+
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError

gradle/buildsrc.libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
asciidoctor-jvm-plugin = "3.3.2"
2+
asciidoctor-jvm-plugin = "5.0.0-alpha.1"
33
asciidoctorj-tabbed-code-extension = "0.3"
44
grgit = "1.9.1"
55
gradle-git = "1.7.1"

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugin-publish = "2.0.0"
33
docker-java = "3.6.0"
44
activation = "1.1.1"
55
asm = "9.9"
6-
spock = "2.3-groovy-3.0"
6+
spock = "2.3-groovy-4.0"
77
cglib-nodep = "3.3.0"
88
zt-zip = "1.13"
99
commons-vfs2 = "2.9.0"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/docs/asciidoc/user-guide/00-intro.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Docker remote API is handled by the https://github.com/docker-java/docker-java[D
77
Please refer to the library's documentation for more information on the supported Docker's client API and Docker server version.
88

99
[IMPORTANT]
10-
This plugin requires Gradle >= 8.4.0 to work properly.
10+
This plugin requires Gradle >= 9.2.0 to work properly.
1111

1212
=== Benefits
1313

src/docs/samples/code/application-plugin/jetty/groovy/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ plugins {
44
}
55

66
version = '1.0'
7-
sourceCompatibility = 1.7
7+
8+
java {
9+
sourceCompatibility = JavaVersion.VERSION_1_7
10+
targetCompatibility = JavaVersion.VERSION_1_7
11+
}
812

913
repositories {
1014
mavenCentral()

src/docs/samples/code/spring-boot-plugin/tomcat/groovy/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ plugins {
66
}
77

88
version = '1.0'
9-
sourceCompatibility = JavaVersion.VERSION_1_8
10-
targetCompatibility = JavaVersion.VERSION_1_8
9+
10+
java {
11+
sourceCompatibility = JavaVersion.VERSION_1_8
12+
targetCompatibility = JavaVersion.VERSION_1_8
13+
}
1114

1215
repositories {
1316
mavenCentral()

0 commit comments

Comments
 (0)