-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
59 lines (49 loc) · 1.72 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'info.solidsoft.gradle:cdeliveryboy:0.8.0'
classpath('com.toomuchcoding:uptodate-gradle-plugin:1.0.1') {
//Workaround: 0.7.2 is not available in Maven Central - https://github.com/marcingrzejszczak/uptodate-gradle-plugin/issues/2
exclude group: 'org.codehaus.groovy.modules.http-builder', module: 'http-builder'
}
}
}
apply plugin: 'java'
apply plugin: 'com.toomuchcoding.uptodate'
apply from: "$rootDir/gradle/cdeliveryboy-release.gradle"
apply from: "$rootDir/gradle/manifest.gradle"
ext.mockitoVersion = findProperty('mockitoVersion') ?: '2.27.0'
sourceCompatibility = 1.8
tasks.withType(JavaCompile) {
options.compilerArgs << '-parameters'
}
test {
useJUnitPlatform()
afterSuite { desc, result ->
if (!desc.parent) {
//Workaround - https://github.com/gradle/gradle/issues/7452
if (result.testCount == 0) {
throw new IllegalStateException("No tests were found. Failing the build")
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.mockito:mockito-core:$mockitoVersion"
compile 'net.jodah:typetools:0.6.1'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.4.2'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
testCompile "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testCompile 'org.assertj:assertj-core:3.13.1'
}
//Disable JavaDoc doclint on Java 8 - it fails on invalid JavaDoc elements in mockito-core jar
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}