diff --git a/util/build.gradle.kts b/util/build.gradle.kts index 8a81375d..a98daf0e 100644 --- a/util/build.gradle.kts +++ b/util/build.gradle.kts @@ -1,7 +1,28 @@ plugins { id("buildlogic.java-conventions") + `maven-publish` } dependencies { compileOnly("dev.pgm.paper:paper-api:1.8_1.21.10-SNAPSHOT") +} + +publishing { + publications.create("community") { + 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/Community") + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } } \ No newline at end of file