-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
} | ||
} | ||
} | ||
} |