-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (47 loc) · 1.52 KB
/
build.gradle.kts
File metadata and controls
54 lines (47 loc) · 1.52 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
47
48
49
50
51
52
53
54
plugins {
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id("org.jetbrains.dokka") version "2.0.0"
}
repositories {
mavenCentral()
}
allprojects {
group = "com.hubspot.sdk"
version = "0.1.0-alpha.7" // x-release-please-version
}
subprojects {
// These are populated with dependencies by `buildSrc` scripts.
tasks.register("format") {
group = "Verification"
description = "Formats all source files."
}
tasks.register("lint") {
group = "Verification"
description = "Verifies all source files are formatted."
}
}
subprojects {
apply(plugin = "org.jetbrains.dokka")
}
// Avoid race conditions between `dokkaJavadocCollector` and `dokkaJavadocJar` tasks
tasks.named("dokkaJavadocCollector").configure {
subprojects.flatMap { it.tasks }
.filter { it.project.name != "hubspot-java" && it.name == "dokkaJavadocJar" }
.forEach { mustRunAfter(it) }
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username.set(
(findProperty("mavenCentralUsername") as String?)
?: System.getenv("SONATYPE_USERNAME"),
)
password.set(
(findProperty("mavenCentralPassword") as String?)
?: System.getenv("SONATYPE_PASSWORD"),
)
}
}
}