-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
56 lines (45 loc) · 1.12 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "java"
id "com.github.hierynomus.license" version "0.16.1"
id 'nebula.release' version '19.0.10'
}
// For Java 17
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://dist.xebialabs.com/public/maven2'
}
}
def apiVersion = "24.1.8"
dependencies {
implementation "com.xebialabs.deployit:udm-plugin-api:$apiVersion"
implementation "org.slf4j:slf4j-api:2.0.12"
}
version = "2.1.0"
if (!project.hasProperty('release.scope')) {
project.ext['release.scope'] = 'patch'
}
if (!project.hasProperty('release.useLastTag')) {
project.ext['release.useLastTag'] = true
}
processResources.configure {
filesNotMatching('**/*.png') {
filter ReplaceTokens, tokens: [
'project.version': version.toString(),
'project.name' : rootProject.name
]
}
}
license {
header rootProject.file('License.md')
excludes(["**/*.png", "**/vendor/*.*", "**/docker-compose.yml"])
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'XEBIALABS'
}