-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (42 loc) · 1006 Bytes
/
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'edu.sc.seis.gradle:launch4j:2.4.6'
}
}
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'edu.sc.seis.launch4j'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.7
def myMainClassName = 'cz.petrfaltus.namedayrestclient.NameDayRestClient'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
compile 'com.googlecode.json-simple:json-simple:1.1.1'
testCompile 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes 'Main-Class': myMainClassName
}
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
createExe {
mainClassName = myMainClassName
icon = "${projectDir}/ico/namedayrestclient.ico"
copyright = "Petr Faltus 2020"
companyName = "Petr Faltus SW and HW development"
}