forked from adessoSE/budgeteer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.46 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
task wrapper(type: Wrapper) {
gradleVersion '4.7'
}
// alle Skripte aus ./gradle.d in sortierter Reihenfolge einbinden
file('gradle.d').listFiles().sort().each {
if (it =~ /.*\.gradle$/) {
apply from: relativePath(it)
}
}
allprojects {
version = '1.1.1.BETA'
}
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
repositories {
jcenter()
mavenLocal()
maven {
name "Apache Snapshots"
url "https://repository.apache.org/content/repositories/snapshots/"
}
}
dependencies {
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junit5_version
testCompile group: 'org.springframework', name: 'spring-test', version: spring_version
testCompile group: 'org.mockito', name: 'mockito-core', version: mockito_version
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junit5_version
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
test {
// Enable JUnit 5 (Gradle 4.6+).
useJUnitPlatform()
}
}