/
geb.gradle
50 lines (41 loc) · 1.05 KB
/
geb.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
45
46
47
48
49
50
import java.time.Duration
plugins {
id 'idea'
id 'geb.coordinates'
alias(libs.plugins.nexusPublish)
alias(libs.plugins.asl2)
}
configurations {
site
}
dependencies {
site project(path: 'doc:site', configuration: 'distribution')
}
nexusPublishing {
repositories {
sonatype {
stagingProfileId = "c1802e5c2fe49"
username.set(providers.gradleProperty("sonatypeOssUsername").forUseAtConfigurationTime())
password.set(providers.gradleProperty("sonatypeOssPassword").forUseAtConfigurationTime())
}
}
clientTimeout = Duration.ofSeconds(300)
connectTimeout = Duration.ofSeconds(60)
transitionCheckOptions {
maxRetries.set(60)
delayBetween.set(Duration.ofMillis(3000))
}
}
extensions.findByName("gradleEnterprise")?.buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
tasks.register("stage", Sync) {
from configurations.site
into 'deploy'
}
idea {
project {
jdkName "1.8"
}
}