-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
51 lines (40 loc) · 1.24 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
version '2.1'
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'distribution'
sourceCompatibility = 1.8
mainClassName = "kumo.Kumo"
repositories {
mavenCentral()
}
dependencies {
//compile 'com.github.sarxos:webcam-capture:0.3.12'
compile 'de.codecentric.centerdevice:javafxsvg:1.3.0'
// Dependencies cannot be added via gradle because it breaks ProGuard obfuscation/shrinking/optimization
//compile 'com.jfoenix:jfoenix:9.0.8' // Java 9
compile 'com.jfoenix:jfoenix:8.0.8'
compile 'xalan:xalan:2.7.0'
}
task fatJar(type: Jar){
manifest {
attributes 'Implementation-Title' : 'kumo',
'Implementation-Version' : project.version,
'Main-Class' : 'kumo.Kumo'
}
baseName = 'kumoB'
//from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
//from configurations.compile - configurations.providedRuntime
with jar
}
jar {
manifest {
attributes('Implementation-Title' : 'kumo',
'Implementation-Version' : project.version,
'Main-Class' : 'kumo.Kumo'
)
}
baseName = 'kumo-gradle'
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}