-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
70 lines (60 loc) · 1.84 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
67
68
69
70
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
group = 'cc.nuym.jnic'
version = '3.6.1'
description = 'Jnic'
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
dependencies {
//implementation project(':Loader')
implementation 'org.ow2.asm:asm-commons:9.4'
implementation 'org.ow2.asm:asm-tree:9.4'
implementation 'org.apache.commons:commons-compress:1.22'
implementation 'com.google.code.gson:gson:2.10'
implementation 'info.picocli:picocli:4.7.1'
implementation("org.simpleframework:simple-xml:2.7.1") {
exclude group: 'xpp3'
exclude group: 'stax'
}
implementation project(path: ':annotation')
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
classifier null
//minimize()
// relocate "oshi", "cn.nuym.oshi"
relocate "picocli", "cc.nuym.depend.picocli"
relocate "ch.qos", "cc.nuym.depend.qos"
//relocate "com.intellij", "cn.nuym"
relocate "com.ctc", "cc.nuym.depend"
relocate "com.fasterxml", "cc.nuym.depend"
//relocate "com.sun", "cn.nuym"
relocate "org.apache", "cc.nuym.depend"
relocate "org.simpleframework", "cc.nuym.depend"
relocate "com.google", "cc.nuym.depend"
relocate "org.codehaus", "cc.nuym.depend"
relocate "org.objectweb", "cc.nuym.depend"
relocate "lombok", "cn.nuym.depend"
relocate "Class50", "cn.nuym.depend"
relocate "com.zwitserloot", "cn.nuym.depend"
exclude 'AUTHORS'
exclude 'LICENSE'
exclude 'latestchanges.html'
exclude 'README.md'
exclude 'changelog.txt'
exclude 'release-timestamp.txt'
}
jar.manifest.attributes(
'Main-Class': 'cc.nuym.jnic.Main'
)
build.dependsOn(shadowJar)