-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
44 lines (35 loc) · 1.19 KB
/
build.gradle.kts
File metadata and controls
44 lines (35 loc) · 1.19 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
import java.time.Duration
plugins {
id("io.github.gradle-nexus.publish-plugin")
id("com.diffplug.gradle.spotless")
}
subprojects {
group = "com.fluxninja.aperture"
}
apply(from = "version.gradle.kts")
nexusPublishing {
packageGroup.set("com.fluxninja.aperture")
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("SONATYPE_USER"))
password.set(System.getenv("SONATYPE_KEY"))
}
}
connectTimeout.set(Duration.ofMinutes(5))
clientTimeout.set(Duration.ofMinutes(5))
transitionCheckOptions {
// We have many artifacts so Maven Central takes a long time on its compliance checks. This sets
// the timeout for waiting for the repository to close to a comfortable 50 minutes.
maxRetries.set(300)
delayBetween.set(Duration.ofSeconds(10))
}
}
spotless {
java {
target("**/*.java")
targetExclude("lib/core/src/main/java/com/fluxninja/generated/**/*.java")
googleJavaFormat().aosp()
}
}