forked from sigstore/sigstore-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (31 loc) · 1.13 KB
/
build.gradle.kts
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
plugins {
id("build-logic.root-build")
// It does not support participating in precompiled script plugins
id("com.github.vlsi.stage-vote-release") version "1.87"
// The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
`embedded-kotlin` apply false
}
val buildVersion = "${findProperty("version")}${releaseParams.snapshotSuffix}"
println("Building Sigstore Java $buildVersion")
val isReleaseVersion = rootProject.releaseParams.release.get()
releaseParams {
tlp.set("sigstore-java")
organizationName.set("sigstore")
componentName.set("sigstore-java")
prefixForProperties.set("s01")
svnDistEnabled.set(false)
sitePreviewEnabled.set(false)
nexus {
prodUrl.set(uri("https://s01.oss.sonatype.org"))
}
voteText.set {
"""
${it.componentName} v${it.version}-rc${it.rc} is ready for preview.
Git SHA: ${it.gitSha}
Staging repository: ${it.nexusRepositoryUri}
""".trimIndent()
}
}
allprojects {
version = project.findProperty("version") as? String ?: rootProject.version
}