-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
40 lines (35 loc) · 944 Bytes
/
build.gradle.kts
File metadata and controls
40 lines (35 loc) · 944 Bytes
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
plugins {
`java-library`
`maven-publish`
val sigstoreVersion = System.getProperty("sigstore.version") ?: "1.3.0"
id("dev.sigstore.sign") version "$sigstoreVersion"
signing
}
version = "1.0.0"
group = "com.example"
// required to resolve sigstore-java
repositories {
mavenLocal() // for testing against dev builds
mavenCentral()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
repositories {
maven {
name = "examples"
url = uri(layout.buildDirectory.dir("example-repo"))
}
}
}
// sigstore signing doesn't require additional setup in build.gradle.kts
// PGP signing setup for the purposes of this example.
signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications["maven"])
}