-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
executable file
·49 lines (39 loc) · 1.07 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
group 'com.padtools'
version '1.4'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "http://jfontchooser.osdn.jp/repository/"
}
}
dependencies {
compile 'org.apache.xmlgraphics:batik-svggen:1.14'
compile 'org.apache.xmlgraphics:batik-dom:1.14'
compile 'say.swing:jfontchooser:1.0.5'
compile group: 'org.jfree', name: 'jfreesvg', version: '3.3'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
def defaultEncoding = 'UTF-8'
compileJava {
options.encoding = defaultEncoding
}
jar {
archiveName = "PadTools.jar"
manifest {
attributes 'Main-Class' : "padtools.Main"
attributes 'Class-Path' : configurations.compile.collect{'libs/' + it.name}.join(' ')
}
}
task makeZip(type : Zip, dependsOn: ['jar']) {
outputs.upToDateWhen { false }
from 'bundle'
from 'build/libs/PadTools.jar'
into ('libs') {
from configurations.runtime
}
}
compileTestJava {
options.encoding = defaultEncoding
}