-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
86 lines (72 loc) · 2.18 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
plugins {
id 'java'
id "com.bmuschko.izpack" version "3.0"
}
group 'fr.raluy'
version '1.0-SNAPSHOT'
// very common version + freebsd doesn't support later than openjdk8: https://www.freebsd.org/java/
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
flatDir {
dirs 'libs'
}
mavenCentral()
maven {
url "https://oss.sonatype.org/service/local/repositories/snapshots/content/"
}
mavenLocal()
}
dependencies {
compile 'com.github.kwhat:jnativehook:2.2-SNAPSHOT'// snap due to https://github.com/kwhat/jnativehook/issues/170 still open as of 2021-02-28
compile 'com.ibm.icu:icu4j:68.2'
compile 'org.slf4j:slf4j-api:1.7.29'
compile 'org.slf4j:slf4j-simple:1.7.29'
compile 'org.assertj:assertj-core:3.19.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.1'
izpack 'org.codehaus.izpack:izpack-ant:5.1.3'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes "Main-Class": 'fr.raluy.chocoratage.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
jar.archiveName = 'chocoratage.jar'
}
task copyLangSelImg(type: Copy) {
from 'src/main/izpack/Choco_Wikipedia_Luc_Viatour.jpg'
into "$buildDir/installer"
}
task copyScripts(type: Copy) {
from 'src/main/scripts'
into "$buildDir/scripts"
}
task copyDocs(type: Copy) {
from 'README.md'
into "$buildDir/docs"
}
// add LICENSE here if needed
izPackCreateInstaller.dependsOn copyLangSelImg
izPackCreateInstaller.dependsOn copyScripts
izPackCreateInstaller.dependsOn copyDocs
izpack {
baseDir = file("$buildDir")
//installFile = file('src/main/izpack/install.xml')
//outputFile = file("$buildDir/distributions/chocoratage-${version}-installer.jar")
compression = 'deflate'
compressionLevel = 9
/*
appProperties = ['app.group': 'Chocoratage', 'app.name': 'chocoratage', 'app.title': 'Chocoratage',
'app.version': version, 'app.subpath': "Chocoratage-$version"]
*/
}