-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (53 loc) · 1.32 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
59
60
61
62
63
64
65
66
plugins {
id 'java'
id "io.freefair.lombok" version "6.3.0"
id 'com.github.johnrengelman.shadow' version "7.1.2"
id "com.github.hierynomus.license" version "0.16.1"
}
group 'pl.asie.zima'
version = '0.9.0'
ext.revision = 'git rev-list --count HEAD'.execute().text.trim()
ext.hash = 'git rev-parse --short HEAD'.execute().text.trim()
version = "${version}-r${revision}.${hash}"
repositories {
mavenCentral()
}
dependencies {
implementation 'com.beust:jcommander:1.82'
implementation 'com.github.davidmoten:word-wrap:0.1.12'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.google.guava:guava:32.0.1-jre'
testImplementation(platform('org.junit:junit-bom:5.9.3'))
testImplementation('org.junit.jupiter:junit-jupiter')
}
license {
header = file('docs/licenses/COPYING')
exclude "**/*.txt"
exclude "**/asie/zima/repack/**"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
main {
resources {
srcDirs "src/main/resources", "docs"
}
}
}
jar {
manifest {
attributes 'Main-Class': 'pl.asie.zima.Main'
}
}
artifacts {
shadowJar
}
shadowJar {
minimize()
}
build.dependsOn(shadowJar)
tasks.withType(Copy).all {
duplicatesStrategy 'exclude'
}