-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
46 lines (38 loc) · 1.16 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
plugins {
id 'java'
}
group 'cz.gresak'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compile group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
compileJava {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'cz.gresak.keyboardeditor.Main'
)
}
}
//create a single jar file with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Keyboard Layout Editor',
'Implementation-Version': version,
'Main-Class': 'cz.gresak.keyboardeditor.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}