Skip to content

Commit 18b35c5

Browse files
committed
Upgrade the build environment and dependencies
1 parent e5abdc2 commit 18b35c5

10 files changed

Lines changed: 61 additions & 28 deletions

File tree

build.gradle.kts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,34 +61,38 @@ gradlePlugin {
6161
displayName = "Gradle Docker Remote API Plugin"
6262
description = "Plugin that provides tasks for interacting with Docker via its remote API."
6363
implementationClass = "com.bmuschko.gradle.docker.DockerRemoteApiPlugin"
64+
tags.set(listOf("docker", "container", "image", "lightweight", "vm", "linux"))
6465
}
6566
create("docker-java-application") {
6667
id = "com.bmuschko.docker-java-application"
6768
displayName = "Gradle Docker Java Application Plugin"
6869
description = "Plugin that provides conventions for building and publishing Docker images for Java applications."
6970
implementationClass = "com.bmuschko.gradle.docker.DockerJavaApplicationPlugin"
71+
tags.set(listOf("docker", "container", "image", "lightweight", "vm", "linux"))
7072
}
7173
create("docker-spring-boot-application") {
7274
id = "com.bmuschko.docker-spring-boot-application"
7375
displayName = "Gradle Docker Spring Boot Application Plugin"
7476
description = "Plugin that provides conventions for building and publishing Docker images for Spring Boot applications."
7577
implementationClass = "com.bmuschko.gradle.docker.DockerSpringBootApplicationPlugin"
78+
tags.set(listOf("docker", "container", "image", "lightweight", "vm", "linux"))
7679
}
7780
}
7881
}
7982

80-
pluginBundle {
81-
website = "https://github.com/bmuschko/gradle-docker-plugin"
82-
vcsUrl = "https://github.com/bmuschko/gradle-docker-plugin"
83-
tags = listOf("docker", "container", "image", "lightweight", "vm", "linux")
83+
gradlePlugin {
84+
website.set("https://github.com/bmuschko/gradle-docker-plugin")
85+
vcsUrl.set("https://github.com/bmuschko/gradle-docker-plugin")
8486
}
8587

86-
buildScan {
87-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
88-
termsOfServiceAgree = "yes"
88+
develocity {
89+
buildScan {
90+
termsOfUseUrl.set("https://gradle.com/help/legal-terms-of-use")
91+
termsOfUseAgree.set("yes")
8992

90-
if (!System.getenv("CI").isNullOrEmpty()) {
91-
publishAlways()
92-
tag("CI")
93+
if (!System.getenv("CI").isNullOrEmpty()) {
94+
publishing.onlyIf { true }
95+
tag("CI")
96+
}
9397
}
9498
}

buildSrc/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ plugins {
66
repositories {
77
mavenCentral()
88
gradlePluginPortal()
9+
maven {
10+
name = "ajoberstar-backup"
11+
url = uri("https://ajoberstar.org/bintray-backup/")
12+
}
13+
}
14+
15+
java {
16+
sourceCompatibility = JavaVersion.VERSION_11
17+
targetCompatibility = JavaVersion.VERSION_11
18+
}
19+
20+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
21+
kotlinOptions {
22+
jvmTarget = "11"
23+
}
924
}
1025

1126
val versionCatalog = extensions.getByType<VersionCatalogsExtension>().named("buildsrcLibs")

gradle/buildsrc.libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ asciidoctorj-tabbed-code-extension = "0.3"
44
grgit = "1.9.1"
55
gradle-git = "1.7.1"
66
gradle-git-publish = "0.3.3"
7-
shadow = "7.1.2"
7+
shadow = "8.3.8"
88

99
[libraries]
1010
asciidoctor-jvm-plugin = { module = "org.asciidoctor:asciidoctor-gradle-jvm", version.ref = "asciidoctor-jvm-plugin" }
1111
asciidoctorj-tabbed-code-extension = { module = "com.bmuschko:asciidoctorj-tabbed-code-extension", version.ref = "asciidoctorj-tabbed-code-extension" }
1212
grgit = { module = "org.ajoberstar:grgit", version.ref = "grgit" }
1313
gradle-git = { module = "org.ajoberstar:gradle-git", version.ref = "gradle-git" }
1414
gradle-git-publish = { module = "org.ajoberstar:gradle-git-publish", version.ref = "gradle-git-publish" }
15-
shadow = { module = "gradle.plugin.com.github.johnrengelman:shadow", version.ref = "shadow" }
15+
shadow = { module = "com.gradleup.shadow:com.gradleup.shadow.gradle.plugin", version.ref = "shadow" }

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[versions]
2-
plugin-publish = "1.1.0"
3-
docker-java = "3.3.3"
2+
plugin-publish = "1.3.1"
3+
docker-java = "3.5.3"
44
activation = "1.1.1"
5-
asm = "9.6"
5+
asm = "9.8"
66
spock = "2.0-groovy-3.0"
77
zt-zip = "1.13"
88
commons-vfs2 = "2.9.0"

gradle/wrapper/gradle-wrapper.jar

1.76 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

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

gradlew.bat

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

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("com.gradle.enterprise") version("3.10.2")
2+
id("com.gradle.develocity") version("4.1")
33
}
44

55
rootProject.name = "gradle-docker-plugin"

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 >= 7.4.0 to work properly.
10+
This plugin requires Gradle >= 8.3.0 to work properly.
1111

1212
=== Benefits
1313

0 commit comments

Comments
 (0)