Skip to content

Commit

Permalink
Change bom deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeinerLP committed May 28, 2024
1 parent 772203b commit f418602
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ jobs:
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
ORG_GRADLE_PROJECT_onelitefeatherSigningKey: "${{ secrets.ONELITEFEATHER_GPG_KEY }}"
ORG_GRADLE_PROJECT_onelitefeatherSigningPassword: "${{ secrets.ONELITEFEATHER_GPG_PASSWORD }}"
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.ONELITEFEATHER_GPG_KEY }}"
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.ONELITEFEATHER_GPG_PASSWORD }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68 changes: 47 additions & 21 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id("io.github.gradlebom.generator-plugin") version "1.0.0.Final"
id("net.kyori.indra")
id("net.kyori.indra.publishing")
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
signing
}

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

indra {
github("OneLiteFeatherNET", "Microtus") {
ci(true)
publishing(false)
signing {
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
signing.isRequired
sign(publishing.publications)
}
mitLicense()
signWithKeyFromPrefixedProperties("onelitefeather")
description = "Bill of materials for Microtus projects."
configurePublications {
pom {
developers {
developer {
id.set("themeinerlp")
name.set("Phillipp Glanz")
email.set("p.glanz@madfix.me")
}
publishing {
publications {
create<MavenPublication>("maven") {

pom {
name.set(project.name)
description.set("Bill of materials for Microtus projects.")
url.set("https://github.com/OneLiteFeatherNET/microtus")

licenses {
license {
name.set("The MIT License")
url.set("https://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("themeinerlp")
name.set("Phillipp Glanz")
email.set("p.glanz@madfix.me")
}
developer {
id.set("theEvilReaper")
name.set("Steffen Wonning")
email.set("steffenwx@gmail.com")
}
}
developer {
id.set("theEvilReaper")
name.set("Steffen Wonning")
email.set("steffenwx@gmail.com")
scm {
url.set("https://github.com/OneLiteFeatherNET/microtus")
connection.set("scm:git:https://github.com/OneLiteFeatherNET/microtus.git")
developerConnection.set("scm:git:git@github.com:OneLiteFeatherNET/microtus.git")
tag.set("${project.version}")
}

issueManagement{
system.set("GitHub")
url.set("https://github.com/OneLiteFeatherNET/microtus/issues")
}
}
}
}
}
}

0 comments on commit f418602

Please sign in to comment.