Skip to content

Commit

Permalink
Configure publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdev2 committed Dec 2, 2020
1 parent 3d3148d commit 31953ef
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,51 @@ jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
}

publishing {

publications {
gpr(MavenPublication) {

pom {
name = "Disable Custom Worlds Advice"
description = "Minecraft asking you if you want to load a custom world is annoying. Let's fix it!"
url = "https://www.curseforge.com/minecraft/mc-mods/fabric-disable-custom-worlds-advice"
licenses {
license {
name = "GNU General Public License, Version 3"
url = "https://www.gnu.org/licenses/gpl-3.0.html"
}
}
developers {
developer {
id = "rdvdev2"
name = "Roger Díaz Viñolas"
email = "[email protected]"
}
}
scm {
connection = "scm:git:https://github.com/rdvdev2/DisableCustomWorldsAdvice.git"
developerConnection = "scm:git:https://github.com/rdvdev2/DisableCustomWorldsAdvice.git"
url = "https://github.com/rdvdev2/DisableCustomWorldsAdvice"
}
}

artifact(remapJar) {
builtBy remapJar
}
}
}

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

0 comments on commit 31953ef

Please sign in to comment.