-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
54 lines (44 loc) · 1.23 KB
/
build.gradle.kts
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
import com.adarshr.gradle.testlogger.TestLoggerExtension
import com.adarshr.gradle.testlogger.theme.ThemeType
group = "cloud.xline"
version = "1.0-SNAPSHOT"
buildscript {
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath("org.gradle:test-retry-gradle-plugin:${libs.versions.testRetryPlugin.get()}")
classpath("com.adarshr:gradle-test-logger-plugin:${libs.versions.testLoggerPlugin.get()}")
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "org.gradle.test-retry")
apply(plugin = "com.adarshr.test-logger")
tasks {
named<JavaCompile>("compileJava") {
// Keep same java with jetcd
options.release = 11
}
named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
// Keep same with jetcd
retry {
maxRetries = 1
maxFailures = 5
}
}
}
extensions.getByType<TestLoggerExtension>().apply {
theme = ThemeType.MOCHA_PARALLEL
showStandardStreams = false
}
}