-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (61 loc) · 1.89 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
70
71
72
73
74
75
plugins {
id "java-library"
id "idea"
id "jacoco"
id "maven-publish"
id 'signing'
id "io.codearte.nexus-staging" version "0.21.2" // logs into Sonatype OSS and does a "Close" and "Release". ./gradlew closeAndReleaseRepository
id "de.marcphilipp.nexus-publish" version "0.4.0"
id "com.github.ben-manes.versions" version "0.28.0"
}
group = "${cloudReporterGroupId}"
version = "${cloudReporterVersion}"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}
compileTestJava {
options.encoding = 'UTF-8'
}
javadoc {
if (JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
repositories {
mavenLocal()
maven { url "https://repo.maven.apache.org/maven2" }
jcenter { url "https://jcenter.bintray.com" }
}
dependencies {
api("io.dropwizard.metrics:metrics-core:4.1.8")
api("io.dropwizard.metrics:metrics-jvm:4.1.8")
api("software.amazon.awssdk:cloudwatch:2.13.8")
api("org.slf4j:slf4j-api:1.7.30")
testImplementation("org.mockito:mockito-core:3.3.3")
testImplementation("junit:junit:4.13")
testImplementation("com.google.truth:truth:1.0.1")
testImplementation("org.hamcrest:hamcrest-core:2.2")
testImplementation("org.hamcrest:hamcrest-library:2.2")
}
tasks.withType(Test) {
testLogging {
events /*"passed", */ "skipped", "failed"
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
}
}
apply from: "$rootDir/conf/jacoco.gradle"
apply from: "$rootDir/conf/jar.gradle"
apply from: "$rootDir/conf/sonatype.gradle"