-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbuild.gradle
51 lines (44 loc) · 1.43 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
plugins {
id 'net.researchgate.release'
id 'maven-publish'
}
dependencies {
compileOnly dependencyStrings.JIB_MAVEN_EXTENSION
testImplementation dependencyStrings.JIB_MAVEN_EXTENSION
testImplementation dependencyStrings.JUNIT
testImplementation dependencyStrings.MOCKITO_CORE
}
jar {
manifest {
attributes 'Implementation-Version': version
attributes 'Automatic-Module-Name': 'com.google.cloud.tools.jib.maven.extension.ownership'
// OSGi metadata
attributes 'Bundle-SymbolicName': 'com.google.cloud.tools.jib.maven.extension.ownership'
attributes 'Bundle-Name': 'Ownership Extension for Jib Maven Plugin'
attributes 'Bundle-Vendor': 'Google LLC'
attributes 'Bundle-DocURL': 'https://github.com/GoogleContainerTools/jib-extensions'
attributes 'Bundle-License': 'https://www.apache.org/licenses/LICENSE-2.0'
attributes 'Export-Package': 'com.google.cloud.tools.jib.*'
}
}
/* RELEASE */
configureMavenRelease()
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'Ownership Extension for Jib Maven Plugin'
description = 'Allows customizing ownership of files in image layers.'
}
from components.java
}
}
}
// Release plugin (git release commits and version updates)
release {
tagTemplate = 'v$version-jib-ownership-extension-maven'
git {
requireBranch = /^jib-ownership-extension-maven-release-v\d+.*$/ //regex
}
}
/* RELEASE */