forked from SmartThingsOSS/dropwizard-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (40 loc) · 1.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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
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: "idea"
apply plugin: "groovy"
apply plugin: "java-library"
apply plugin: "jacoco"
apply plugin: 'com.github.ben-manes.versions'
apply from: rootProject.file('gradle/publishing.gradle')
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenLocal()
jcenter()
}
test {
maxHeapSize = "1024m"
}
jacocoTestReport {
reports {
xml.enabled true
}
}
}