-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.gradle
52 lines (45 loc) · 1.48 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
plugins {
id 'net.researchgate.release'
id 'maven-publish'
}
dependencies {
compileOnly dependencyStrings.JIB_MAVEN_EXTENSION
compileOnly dependencyStrings.GUAVA
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.layerfilter'
// OSGi metadata
attributes 'Bundle-SymbolicName': 'com.google.cloud.tools.jib.maven.extension.layerfilter'
attributes 'Bundle-Name': 'Layer Filter 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 = 'Layer Filter Extension for Jib Maven Plugin'
description = 'Allows fine-grained control of files in image layers.'
}
from components.java
}
}
}
// Release plugin (git release commits and version updates)
release {
tagTemplate = 'v$version-jib-layer-filter-extension-maven'
git {
requireBranch = /^jib-layer-filter-extension-maven-release-v\d+.*$/ //regex
}
}
/* RELEASE */