-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (46 loc) · 1.49 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
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'groovy'
repositories {
mavenCentral()
mavenLocal()
}
ext.versionMajor = 1
ext.versionMinor = 0
ext.versionPatch = 0
version = ext.versionMajor + '.' + ext.versionMinor + '.' + ext.versionPatch
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'groovy'
sourceCompatibility = 11
targetCompatibility = 11
apply from: rootProject.rootDir.toPath().resolve('gradle/read_version.gradle')
dependencies {
testImplementation 'org.codehaus.groovy:groovy:3.0.10'
testImplementation platform("org.spockframework:spock-bom:2.1-groovy-3.0")
testImplementation "org.spockframework:spock-core"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
tasks.withType(JavaCompile) {
// necessary for spock to avoid error with org.codehaus.groovy.vmplugin.v7.Java7$1
sourceCompatibility = 11
targetCompatibility = 11
// for debugging purposes to show unchecked issues
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
options.encoding = "UTF-8"
}
tasks.withType(Test) {
// necessary for spock to avoid error with org.codehaus.groovy.vmplugin.v7.Java7$1
sourceCompatibility = 11
targetCompatibility = 11
}
}