-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
build.gradle
38 lines (33 loc) · 1.14 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
buildscript {
apply from: 'dependencies.gradle'
}
plugins {
id 'org.jetbrains.kotlin.jvm' version "2.1.0" apply false
id 'org.jetbrains.dokka' version "2.0.0" apply false
id 'org.beryx.jar' version "2.0.0" apply false
}
wrapper {
gradleVersion = '8.10.2'
}
allprojects {
tasks.withType(ProcessForkOptions).configureEach {
// Prevent Gradle build cache reuse for different _JAVA_OPTIONS
inputs.property("ENV:_JAVA_OPTIONS", providers.environmentVariable("_JAVA_OPTIONS")).optional(true)
}
tasks.withType(JavaCompile).configureEach {
// Prevent Gradle build cache reuse for different _JAVA_OPTIONS
inputs.property("ENV:_JAVA_OPTIONS", providers.environmentVariable("_JAVA_OPTIONS")).optional(true)
}
tasks.withType(Test).configureEach {
def language = System.getProperty("user.language") ?: "TR"
if (language != null) {
systemProperty("user.language", language)
}
def country = System.getProperty("user.country") ?: "tr"
if (country != null) {
systemProperty("user.country", country)
}
// Tests might depend on timezone, so treat it as an input
inputs.property("ENV:TZ", providers.environmentVariable("TZ")).optional(true)
}
}