-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
56 lines (46 loc) · 1.28 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
plugins {
id "application"
id "java"
}
group "org.openrsc"
version "1.0-SNAPSHOT"
application {
mainClassName = "org.openrsc.editor.Main"
}
jar {
manifest {
attributes(
'Main-Class': 'org.openrsc.editor.Main'
)
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
repositories {
mavenCentral()
jcenter() // jcenter is a superset of mavenCentral
}
dependencies {
compile "xpp3:xpp3:1.1.4c"
compile "com.thoughtworks.xstream:xstream:1.4.9"
compile "com.fasterxml.jackson.core:jackson-databind:2.12.2"
compile "com.google.guava:guava:30.1.1-jre"
compile "com.github.haifengl:smile-plot:2.6.0"
// Lombok
compileOnly "org.projectlombok:lombok:1.18.16"
annotationProcessor "org.projectlombok:lombok:1.18.16"
testCompileOnly "org.projectlombok:lombok:1.18.16"
testAnnotationProcessor "org.projectlombok:lombok:1.18.16"
}
task copyJar(type: Copy) {
from jar // here it automatically reads jar file produced from jar task
into './'
rename(new Transformer<String, String>() {
@Override
String transform(String s) {
return name.substring(0, name.lastIndexOf("-")) + ".jar"
}
})
}
tasks.build.finalizedBy copyJar