Skip to content

Commit f418602

Browse files
committed
Change bom deployment
1 parent 772203b commit f418602

File tree

2 files changed

+49
-21
lines changed

2 files changed

+49
-21
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ jobs:
4444
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
4545
ORG_GRADLE_PROJECT_onelitefeatherSigningKey: "${{ secrets.ONELITEFEATHER_GPG_KEY }}"
4646
ORG_GRADLE_PROJECT_onelitefeatherSigningPassword: "${{ secrets.ONELITEFEATHER_GPG_PASSWORD }}"
47+
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.ONELITEFEATHER_GPG_KEY }}"
48+
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.ONELITEFEATHER_GPG_PASSWORD }}"
4749
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bom/build.gradle.kts

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id("io.github.gradlebom.generator-plugin") version "1.0.0.Final"
3-
id("net.kyori.indra")
4-
id("net.kyori.indra.publishing")
3+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
54
signing
65
}
76

@@ -19,28 +18,55 @@ bomGenerator {
1918
includeDependency("net.onelitefeather.microtus.testing", "testing", version)
2019
}
2120

22-
indra {
23-
github("OneLiteFeatherNET", "Microtus") {
24-
ci(true)
25-
publishing(false)
21+
signing {
22+
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
23+
val signingKey: String? by project
24+
val signingPassword: String? by project
25+
useInMemoryPgpKeys(signingKey, signingPassword)
26+
signing.isRequired
27+
sign(publishing.publications)
2628
}
27-
mitLicense()
28-
signWithKeyFromPrefixedProperties("onelitefeather")
29-
description = "Bill of materials for Microtus projects."
30-
configurePublications {
31-
pom {
32-
developers {
33-
developer {
34-
id.set("themeinerlp")
35-
name.set("Phillipp Glanz")
36-
email.set("p.glanz@madfix.me")
29+
}
30+
publishing {
31+
publications {
32+
create<MavenPublication>("maven") {
33+
34+
pom {
35+
name.set(project.name)
36+
description.set("Bill of materials for Microtus projects.")
37+
url.set("https://github.com/OneLiteFeatherNET/microtus")
38+
39+
licenses {
40+
license {
41+
name.set("The MIT License")
42+
url.set("https://opensource.org/licenses/MIT")
43+
distribution.set("repo")
44+
}
45+
}
46+
developers {
47+
developer {
48+
id.set("themeinerlp")
49+
name.set("Phillipp Glanz")
50+
email.set("p.glanz@madfix.me")
51+
}
52+
developer {
53+
id.set("theEvilReaper")
54+
name.set("Steffen Wonning")
55+
email.set("steffenwx@gmail.com")
56+
}
3757
}
38-
developer {
39-
id.set("theEvilReaper")
40-
name.set("Steffen Wonning")
41-
email.set("steffenwx@gmail.com")
58+
scm {
59+
url.set("https://github.com/OneLiteFeatherNET/microtus")
60+
connection.set("scm:git:https://github.com/OneLiteFeatherNET/microtus.git")
61+
developerConnection.set("scm:git:git@github.com:OneLiteFeatherNET/microtus.git")
62+
tag.set("${project.version}")
63+
}
64+
65+
issueManagement{
66+
system.set("GitHub")
67+
url.set("https://github.com/OneLiteFeatherNET/microtus/issues")
4268
}
4369
}
4470
}
4571
}
46-
}
72+
}

0 commit comments

Comments
 (0)