Skip to content

Commit

Permalink
Merge branch 'Dev/1.20' into Dev/1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePandaOliver committed Jan 25, 2025
2 parents e1f70f4 + da9d461 commit e04826e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,27 @@ tasks.remapJar {
tasks.withType<RemapJarTask> {
val shadowJar = tasks.getByName<ShadowJar>("shadowJar")
inputFile.set(shadowJar.archiveFile)
}

publishing {
publications {
register("mavenJava", MavenPublication::class) {
groupId = properties["maven_group"] as String
artifactId = "${properties["mod_id"]}-${project.name}"
version = "${project.version}-build.${project.findProperty("buildNumber") ?: "-1"}"

from(components["java"])
}
}

repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/PandaMods-Dev/PandaLib")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
}

0 comments on commit e04826e

Please sign in to comment.