-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
49 lines (40 loc) · 1.06 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
apply plugin: "java"
group 'com.github.thelampgod'
version '1.3'
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
mavenCentral()
}
configurations {
shade
compile.extendsFrom shade
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
shade 'org.apache.commons:commons-csv:1.8'
shade 'com.google.code.gson:gson:2.8.6'
shade("com.google.guava:guava:30.0-jre")
}
jar {
from {
configurations.shade.collect {
it.isDirectory() ? it : zipTree(it)
}.unique()
} {
exclude "META-INF/**"
exclude sourceSets.main.output.asFileTree.collect {
return it.getPath().split("java/main/").last()
}
}
manifest {
attributes "Implementation-Title": "thelampgod",
"Implementation-Version": archiveVersion,
"Main-Class": "com.github.thelampgod.uuidtoname.Main"
}
}