-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
63 lines (50 loc) · 1.3 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
buildscript {
repositories {
jcenter()
gradlePluginPortal()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.39.0'
}
}
def jvmEncoding = java.nio.charset.Charset.defaultCharset().name()
if (jvmEncoding != "UTF-8") {
throw new IllegalStateException("Build environment must be UTF-8 (it is: $jvmEncoding) - add '-Dfile.encoding=UTF-8' to the GRADLE_OPTS environment variable ")
}
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException("Must be built with Java 8 or higher")
}
subprojects {
group = "smartthings"
version = rootProject.file('version.txt').text.trim()
apply plugin: "base"
apply plugin: "java"
apply plugin: "groovy"
apply plugin: "maven-publish"
apply plugin: "jacoco"
apply plugin: 'idea'
apply plugin: 'com.github.ben-manes.versions'
apply from: rootProject.file('gradle/publishing.gradle')
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenLocal()
jcenter()
}
dependencies {
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
testRuntimeOnly('cglib:cglib-nodep:3.3.0')
testRuntimeOnly('org.objenesis:objenesis:3.2')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
}