/
build.gradle
46 lines (37 loc) · 1.37 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
group 'org.isaqb'
version '1.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.5
targetCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.4.5'
// We use the awesome Spock testing and specification framework
testImplementation 'org.spockframework:spock-core:1.0-groovy-2.4'
testImplementation 'junit:junit:4.12'
}
task generateTerms(dependsOn: compileGroovy, type: JavaExec) {
jvmArgs = ['--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.io=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED',
'--add-opens', 'java.base/java.util.regex=ALL-UNNAMED']
classpath = sourceSets.main.runtimeClasspath
mainClass = 'TermsGenerator'
if (project.hasProperty("args")) {
args project.getProperty("args")[0]
} else {
args "en" // default en
}
}
task generateTables(dependsOn: compileGroovy, type: JavaExec) {
jvmArgs = ['--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.io=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED']
classpath = sourceSets.main.runtimeClasspath
mainClass = 'Translator'
}
description = "Buildfile for iSAQB(c) Glossary Project\n"