-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathbuild.gradle
93 lines (71 loc) · 2.69 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
plugins {
id "com.github.ben-manes.versions" version "0.20.0"
}
allprojects {
// jgnash-help is not a compiled sub-project
if (!it.name.startsWith("jgnash-help")) {
apply plugin: "java"
}
sourceCompatibility = 11
targetCompatibility = 11
group = "jgnash"
version = "3.0.2"
project.ext {
junitVersion = "5.4.1"
junitextensionsVersion = "2.3.0" // https://github.com/glytching/junit-extensions
awaitilityVersion = "3.1.6" // https://github.com/awaitility/awaitility
picocliVersion = "3.9.5"
apachePoiVersion = "4.0.1"
commonsCsvVersion = "1.6"
commonsTextVersion = "1.6"
commonsLangVersion = "3.8.1"
h2Version = "1.4.199"
hsqldbVersion = "2.4.1"
xstreamVersion = "1.4.11.1"
hibernateVersion = "5.4.2.Final"
hikariVersion = "3.3.1" // https://github.com/brettwooldridge/HikariCP
pdfBoxVersion = "2.0.14"
nettyVersion = "4.1.34.Final"
slf4jVersion = "1.8.0-beta4"
}
}
subprojects {
repositories {
mavenCentral()
jcenter()
mavenLocal()
maven { url "http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/" }
}
// jgnash-help is not a compiled sub-project
if (!it.name.startsWith("jgnash-help")) {
dependencies {
testCompile group: "org.junit.jupiter", name: "junit-jupiter-api", version: junitVersion
testCompile group: "org.junit.jupiter", name: "junit-jupiter-params", version: junitVersion
testRuntime group: "org.junit.jupiter", name: "junit-jupiter-engine", version: junitVersion
testCompile group: "io.github.glytching", name: "junit-extensions", version: junitextensionsVersion
testCompile group: "org.awaitility", name: "awaitility", version: awaitilityVersion
testCompile group: "org.apache.commons", name: "commons-text", version: commonsTextVersion
}
}
test {
useJUnitPlatform()
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
showStandardStreams = true
}
}
}
wrapper {
gradleVersion = "5.3.1"
}
task distZip {
doLast {
ant.zip(destfile: "jgnash-" + version + "-bin.zip", duplicate: "preserve", update: "false") {
zipgroupfileset(dir: ".", includes: "jgnash-fx/build/distributions/jGnashFx-" + version + ".zip")
zipgroupfileset(dir: ".", includes: "bootloader/build/distributions/jGnash-" + version + ".zip")
}
}
}
distZip.dependsOn(":jgnash-fx:distZip")
distZip.dependsOn(":bootloader:distZip")