-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
103 lines (85 loc) · 2.97 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'java'
id "edu.sc.seis.launch4j" version "2.4.6"
}
group = 'adda'
version = '0.9.5'
sourceCompatibility = '8'
repositories {
flatDir {
dirs './lib'
}
mavenCentral()
}
dependencies {
compile group: 'org.json', name: 'json', version: '20190722'
compile group: 'xalan', name: 'serializer', version: '2.7.2'
compile group: 'org.reflections', name: 'reflections', version: '0.9.11'
compile group: 'com.github.jiconfont', name: 'jiconfont-swing', version: '1.0.0'
compile group: 'com.github.jiconfont', name: 'jiconfont-font_awesome', version: '4.7.0.1'
compile group: 'com.formdev', name: 'flatlaf', version: '0.35'
compile group: 'net.java.balloontip', name: 'balloontip', version: '1.2.4.1'
compile group: 'javax.help', name: 'javahelp', version: '2.0.05'
compile group: 'org.jfree', name: 'jfreechart', version: '1.5.3'
compile group: 'net.lingala.zip4j', name: 'zip4j', version: '2.9.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.31'
compile group: 'io.methvin', name: 'directory-watcher', version: '0.15.0'
//compile group: 'sh.tak.appbundler', name: 'appbundle-maven-plugin', version: '1.2.0'
// implementation group: 'org.jogamp.gluegen', name: 'gluegen-rt-main', version:'2.3.2'
// implementation group: 'org.jogamp.jogl', name: 'jogl-all-main', version:'2.3.2'
compile fileTree(dir: 'lib', include: ['*'])
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
//implementation 'org.junit.jupiter:junit-jupiter'
implementation 'junit:junit:4.12'
}
manifest {
attributes(
'Main-Class': 'adda.Main'
)
}
launch4j {
mainClassName = 'adda.Main'
icon = "${projectDir}/help/en/adda_logo.ico"
//bundledJrePath = "c:\\Program Files\\JetBrains\\IntelliJ IDEA 2019.3.4\\jbr"
bundledJrePath = "jbr"
bundledJre64Bit = true
}
sourceSets {
main {
java {
srcDirs= ["src/main/java"]
}
resources {
srcDirs= ["src/main/resources"]
}
}
}
test {
useJUnitPlatform()
}
task packageExecutableDistribution(type: Zip) {
archiveFileName = "adda-gui_${version}_win64.zip"
destinationDirectory = file("$projectDir/releases")
from "$buildDir/launch4j"
}
task addJreToDistributable(type: Copy) {
from("$projectDir/jbr-windows/")
destinationDir = file("$buildDir/launch4j/jbr")
}
task addAddaBinToDistributable(type: Copy) {
from('bin') {
include '**/*.*'
}
destinationDir = file("$buildDir/launch4j/bin")
}
task addHelpToDistributable(type: Copy) {
from('help') {
include '**/*.*'
}
destinationDir = file("$buildDir/launch4j/help")
}
packageExecutableDistribution.dependsOn createExe
packageExecutableDistribution.dependsOn addJreToDistributable
packageExecutableDistribution.dependsOn addAddaBinToDistributable
packageExecutableDistribution.dependsOn addHelpToDistributable