Skip to content

Commit 5bea829

Browse files
authored
feat: setup sbom info (#200)
1 parent f28a835 commit 5bea829

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

gradle/publish.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,22 @@ if (localPropertyFile.exists()) {
99
}
1010

1111
group = "io.github.ryunen344.webauthn"
12-
version = providers.fileContents(rootProject.layout.projectDirectory.file("version.txt")).asText.orNull?.trim() ?: "snapshot"
12+
version = providers.fileContents(rootProject.layout.projectDirectory.file("version.txt")).asText.getOrElse("snapshot").trim()
13+
description = project.findProperty("POM_DESCRIPTION")
1314

1415
spdxSbom {
1516
targets {
1617
release {
1718
configurations.add("releaseRuntimeClasspath")
19+
scm {
20+
tool.set("git")
21+
uri.set("https://github.com/RyuNen344/WebAuthnKt.git")
22+
revision.set(version)
23+
}
24+
document {
25+
namespace.set("https://github.com/RyuNen344/WebAuthnKt/spdxdocs/${UUID.randomUUID()}")
26+
creator.set("Person:RyuNen344")
27+
}
1828
}
1929
}
2030
}

0 commit comments

Comments
 (0)