-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
44 lines (37 loc) · 1.07 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
plugins {
id("base")
}
allprojects {
group = "com.barsifedron.candid.cqrs"
version = "1.0-SNAPSHOT"
}
subprojects {
apply plugin: "java-library"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
vendor = JvmVendorSpec.ADOPTOPENJDK
}
consistentResolution {
useCompileClasspathVersions()
}
withSourcesJar()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.6.2"
testImplementation "org.mockito:mockito-core:2.23.0"
}
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
def testJavaVersion = providers.gradleProperty("testJavaVersion")
.forUseAtConfigurationTime()
.map { it.toInteger() }
.orElse(8)
tasks.withType(Test).configureEach {
it.javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(testJavaVersion.get()))
})
}
}