Skip to content

Commit

Permalink
Publish util module (#1468)
Browse files Browse the repository at this point in the history
Signed-off-by: BT (calcastor/mame) <[email protected]>
  • Loading branch information
calcastor authored Dec 29, 2024
1 parent 1166c7a commit 4c7eb75
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions util/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("buildlogic.java-conventions")
`maven-publish`
}

dependencies {
Expand All @@ -18,3 +19,23 @@ sourceSets {
}
}
}

publishing {
publications.create<MavenPublication>("pgm") {
groupId = project.group as String
artifactId = project.name
version = project.version as String

artifact(tasks["jar"])
}
repositories {
maven {
name = "ghPackages"
url = uri("https://maven.pkg.github.com/PGMDev/PGM")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

0 comments on commit 4c7eb75

Please sign in to comment.