-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbuild.gradle
54 lines (47 loc) · 1.56 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
plugins {
id 'java-gradle-plugin'
id 'net.researchgate.release'
id 'maven-publish'
}
dependencies {
compileOnly dependencyStrings.JIB_GRADLE_EXTENSION
compileOnly dependencyStrings.GUAVA
testImplementation dependencyStrings.JIB_GRADLE_EXTENSION
testImplementation dependencyStrings.GUAVA
testImplementation dependencyStrings.JUNIT
testImplementation dependencyStrings.MOCKITO_CORE
}
jar {
manifest {
attributes 'Implementation-Version': version
attributes 'Automatic-Module-Name': 'com.google.cloud.tools.jib.gradle.extension.layerfilter'
// OSGi metadata
attributes 'Bundle-SymbolicName': 'com.google.cloud.tools.jib.gradle.extension.layerfilter'
attributes 'Bundle-Name': 'Layer Filter Extension for Jib Gradle 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 Gradle 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-gradle'
git {
requireBranch = /^jib-layer-filter-extension-gradle-release-v\d+.*$/ //regex
}
}
/* RELEASE */