-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
96 lines (85 loc) · 2.79 KB
/
build.gradle.kts
File metadata and controls
96 lines (85 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import de.gesellix.docker.authentication.AuthConfig
import de.gesellix.gradle.docker.tasks.DockerInfoTask
import de.gesellix.gradle.docker.tasks.DockerPingTask
import de.gesellix.gradle.docker.tasks.DockerVersionTask
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("de.gesellix:docker-client:2025-11-30T22-30-00-groovy-4")
classpath(localGroovy())
}
}
// Works with Gradle 2.1+.
// For the old configuration see https://plugins.gradle.org/plugin/de.gesellix.docker
// or use the pluginManagement in the settings.gradle.kts
// to configure another repository.
plugins {
id("com.github.ben-manes.versions") version "0.53.0"
id("org.sonatype.gradle.plugins.scan") version "3.1.4"
id("de.gesellix.docker") version "2025-12-01T21-21-00"
}
ossIndexAudit {
username = System.getenv("SONATYPE_INDEX_USERNAME") ?: findProperty("sonatype.index.username")
password = System.getenv("SONATYPE_INDEX_PASSWORD") ?: findProperty("sonatype.index.password")
}
fun findProperty(s: String) = project.findProperty(s) as String?
allprojects {
apply(plugin = "base")
apply(plugin = "de.gesellix.docker")
// configurations.all {
// resolutionStrategy {
// failOnVersionConflict()
// dependencySubstitution {
// all {
// requested.let {
// if (it is ModuleComponentSelector && it.group == "org.codehaus.groovy") {
// logger.lifecycle("substituting $it with 'org.apache.groovy:*:4.0.15'")
// useTarget(
// "org.apache.groovy:${it.module}:4.0.15",
// "Changed Maven coordinates since Groovy 4"
// )
// }
// }
// }
// }
// }
// }
// configure<de.gesellix.gradle.docker.DockerPluginExtension> {
docker {
// dockerHost = System.env.DOCKER_HOST ?: "unix:///var/run/docker.sock"
// dockerHost = System.env.DOCKER_HOST ?: "https://192.168.99.100:2376"
// certPath = System.getProperty("docker.cert.path") ?: "${System.getProperty("user.home")}/.docker/machine/machines/default"
authConfig = AuthConfig().apply {
username = "gesellix"
password = "-yet-another-password-"
email = "tobias@gesellix.de"
serveraddress = "https://index.docker.io/v1/"
}
}
}
tasks {
register<DockerPingTask>("ping") {
doLast {
println(result.content)
}
}
register<DockerVersionTask>("dockerVersion") {
doLast {
println(version.content)
}
}
register<DockerInfoTask>("dockerInfo") {
doLast {
println(info.content)
}
}
wrapper {
gradleVersion = "9.2.0"
distributionType = Wrapper.DistributionType.BIN
// https://gradle.org/release-checksums/
distributionSha256Sum = "df67a32e86e3276d011735facb1535f64d0d88df84fa87521e90becc2d735444"
}
}