forked from GoogleContainerTools/jib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (50 loc) · 1.53 KB
/
build.gradle
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
plugins {
id 'net.researchgate.release'
id 'maven-publish'
id 'eclipse'
}
dependencies {
compileOnly dependencyStrings.JSR305
testImplementation dependencyStrings.GUAVA
testImplementation dependencyStrings.JUNIT
testImplementation dependencyStrings.MOCKITO_CORE
testImplementation dependencyStrings.SLF4J_API
testImplementation dependencyStrings.SYSTEM_RULES
}
jar {
manifest {
attributes 'Implementation-Version': archiveVersion
attributes 'Automatic-Module-Name': 'com.google.cloud.tools.jib.api.buildplan'
// OSGi metadata
attributes 'Bundle-SymbolicName': 'com.google.cloud.tools.jib.api.buildplan'
attributes 'Bundle-Name': 'Jib Container Build Plan API'
attributes 'Bundle-Vendor': 'Google LLC'
attributes 'Bundle-DocURL': 'https://github.com/GoogleContainerTools/jib'
attributes 'Bundle-License': 'https://www.apache.org/licenses/LICENSE-2.0'
attributes 'Export-Package': 'com.google.cloud.tools.jib.api.buildplan'
}
}
/* RELEASE */
configureMavenRelease()
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'Jib Container Build Plan API'
description = 'Jib Container Build Plan API'
}
from components.java
}
}
}
// Release plugin (git release commits and version updates)
release {
tagTemplate = 'v$version-build-plan'
git {
requireBranch = /^build-plan-release-v\d+.*$/ //regex
}
}
/* RELEASE */
/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */