-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
35 lines (29 loc) · 1.2 KB
/
build.gradle.kts
File metadata and controls
35 lines (29 loc) · 1.2 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
// codeql java version hint: languageVersion = JavaLanguageVersion.of(21)
// https://github.com/github/codeql-action/issues/1855
plugins {
id("build-logic.root-build")
id("com.gradleup.nmcp.aggregation") version "1.4.0"
// 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 calculatedVersion = property("version") as String + (if (hasProperty("release")) "" else "-SNAPSHOT")
allprojects {
version = calculatedVersion
}
val parameters by tasks.registering {
group = HelpTasksPlugin.HELP_GROUP
description = "Displays build parameters (i.e. -P flags) that can be used to customize the build"
dependsOn(gradle.includedBuild("build-logic").task(":build-parameters:parameters"))
}
nmcpAggregation {
centralPortal {
username = providers.environmentVariable("CENTRAL_PORTAL_USERNAME")
password = providers.environmentVariable("CENTRAL_PORTAL_PASSWORD")
publishingType = "USER_MANAGED"
publicationName = "sigstore java $version"
}
}
dependencies {
nmcpAggregation(project(":sigstore-java"))
nmcpAggregation(project(":sigstore-maven-plugin"))
}