-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
79 lines (63 loc) · 1.94 KB
/
build.gradle
File metadata and controls
79 lines (63 loc) · 1.94 KB
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
76
77
78
79
plugins {
id 'java'
id 'idea'
id 'io.freefair.lombok' version '5.3.0'
}
allprojects {
group 'com.bigbade'
version '1.0-SNAPSHOT'
targetCompatibility = 1.16
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'io.freefair.lombok'
lombok {
version = '1.18.20'
}
generateLombokConfig.enabled = false
dependencies {
//SLF4J
implementation 'org.slf4j:slf4j-api:1.8.0-beta4'
//Annotations
compileOnly 'com.google.code.findbugs:jsr305:3.+'
//Unit Tests
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
}
configurations {
integrationCompile.extendsFrom testImplementation
integrationRuntime.extendsFrom testImplementation
integrationRuntime.extendsFrom testRuntimeOnly
}
sourceSets {
integrationTest {
java.srcDir 'src/integrationTest/java'
resources.srcDir 'src/integrationTest/resources'
compileClasspath += main.output + test.output + configurations.integrationCompile
runtimeClasspath += main.output + test.output + configurations.integrationRuntime
resources.srcDir file('src/integrationTest/resources')
}
}
task integrationTest(type: Test, group: 'Verification') {
useJUnitPlatform()
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}
idea {
module {
sourceDirs -= file('src/integrationTest/java')
testSourceDirs += file('src/integrationTest/java')
}
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
}