-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
69 lines (59 loc) · 2 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
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")
}
group 'smartthings'
version = rootProject.file('version.txt').text.trim()
apply plugin: 'java'
apply plugin: 'base'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: "jacoco"
apply from: rootProject.file('gradle/publishing.gradle')
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
}
}
repositories {
jcenter()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
maven {
url 'https://smartthingsoss.jfrog.io/artifactory/libs-release-local'
}
mavenLocal()
}
compileJava {
options.compilerArgs << "-Xlint:unchecked"
}
dependencies {
compile "smartthings:dropwizard-guice:${dropwizardCommon}"
compile "com.amazonaws:aws-java-sdk-sqs:1.11.184"
compile "com.amazonaws:aws-java-sdk-sns:1.11.184"
compile "com.amazonaws:aws-java-sdk-sts:1.11.184"
compile "io.github.resilience4j:resilience4j-circuitbreaker:0.10.0"
compile "io.github.resilience4j:resilience4j-metrics:0.10.0"
compile "io.github.resilience4j:resilience4j-prometheus:0.10.0"
testCompile "io.dropwizard:dropwizard-testing:${dropwizardVersion}"
testCompile "smartthings:dropwizard-async-http-client:${dropwizardCommon}"
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
testCompile "org.objenesis:objenesis:2.6"
testCompile "cglib:cglib-nodep:3.2.4"
testRuntime "ch.qos.logback:logback-classic:1.1.7"
testRuntime "org.slf4j:slf4j-api:${slf4jVersion}"
}
jacocoTestReport {
reports {
xml.enabled true
}
}