forked from jqwik-team/jqwik
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (40 loc) · 1.45 KB
/
Copy pathbuild.gradle
File metadata and controls
46 lines (40 loc) · 1.45 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
buildscript {
apply from: 'dependencies.gradle'
}
plugins {
id 'org.jetbrains.kotlin.jvm' version "2.3.21" apply false
id 'org.jetbrains.dokka' version "2.2.0" apply false
id 'org.beryx.jar' version "2.0.0" apply false
}
wrapper {
gradleVersion = '9.5.1'
}
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)
}
}
tasks.register("publish", Exec) {
subprojects.each { dependsOn("${it.name}:publish") }
group = "Publishing"
description = "Publishes all publications in this project " +
"and announces publication to central.sonatype.com."
commandLine './signalPublishToCentralSonatype.sh', project.portalTokenBase64
}