-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (44 loc) · 1.02 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
apply plugin: 'java'
apply plugin: 'application'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
}
dependencies {
compile files( 'lib/itextpdf-5.5.5.jar')
compile files( 'lib/miglayout-4.0.jar')
compile files( 'lib/weblaf-complete-1.28.jar')
}
task fatJar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'advancedresoucemenaging.AdvancedResouceMenaging'
)
}
}
if (!hasProperty('mainClass')) {
ext.mainClass = 'advancedresoucemenaging.AdvancedResouceMenaging'
}
mainClassName = ext.mainClass