forked from bmuschko/gradle-docker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
77 lines (68 loc) · 2.33 KB
/
build.gradle.kts
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
import java.text.SimpleDateFormat
import java.util.Date
plugins {
groovy
`java-gradle-plugin`
`build-scan`
com.bmuschko.gradle.docker.`test-setup`
com.bmuschko.gradle.docker.`integration-test`
com.bmuschko.gradle.docker.`functional-test`
com.bmuschko.gradle.docker.`doc-test`
com.bmuschko.gradle.docker.`additional-artifacts`
com.bmuschko.gradle.docker.`shaded-artifacts`
com.bmuschko.gradle.docker.`user-guide`
com.bmuschko.gradle.docker.documentation
com.bmuschko.gradle.docker.publishing
com.bmuschko.gradle.docker.release
}
group = "com.bmuschko"
repositories {
jcenter()
}
dependencies {
shaded("com.github.docker-java:docker-java:3.1.5")
shaded("javax.activation:activation:1.1.1")
shaded("org.ow2.asm:asm:7.0")
testImplementation("org.spockframework:spock-core:1.2-groovy-2.5") {
exclude(group = "org.codehaus.groovy")
}
testImplementation("org.zeroturnaround:zt-zip:1.13")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.named<Jar>("jar") {
manifest {
attributes["Implementation-Title"] = "Gradle Docker plugin"
attributes["Implementation-Version"] = project.version
attributes["Built-By"] = System.getProperty("user.name")
attributes["Built-Date"] = SimpleDateFormat("MM/dd/yyyy").format(Date())
attributes["Built-JDK"] = System.getProperty("java.version")
attributes["Built-Gradle"] = gradle.gradleVersion
}
}
gradlePlugin {
plugins {
create("docker-remote-api") {
id = "com.bmuschko.docker-remote-api"
implementationClass = "com.bmuschko.gradle.docker.DockerRemoteApiPlugin"
}
create("docker-java-application") {
id = "com.bmuschko.docker-java-application"
implementationClass = "com.bmuschko.gradle.docker.DockerJavaApplicationPlugin"
}
create("docker-spring-boot-application") {
id = "com.bmuschko.docker-spring-boot-application"
implementationClass = "com.bmuschko.gradle.docker.DockerSpringBootApplicationPlugin"
}
}
}
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
if (!System.getenv("CI").isNullOrEmpty()) {
publishAlways()
tag("CI")
}
}