diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 8870e0a..289b2bf 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,8 @@ plugins { id 'com.github.johnrengelman.shadow' version '6.1.0' id "net.minecraftforge.gradle.forge" version "ddb1eb0" + id "maven-publish" + id "signing" id "java" } @@ -34,4 +36,42 @@ shadowJar { archiveClassifier.set('') configurations = [project.configurations.include] duplicatesStrategy DuplicatesStrategy.EXCLUDE +} + +publishing { + publications { + maven(MavenPublication) { + groupId = "cc.polyfrost" + artifactId = archivesBaseName + "-1.8.9-forge" + + from(components["java"]) + } + } + + repositories { + maven { + name = "releases" + url = "https://repo.polyfrost.cc/releases" + credentials(PasswordCredentials) + authentication { + basic(BasicAuthentication) + } + } + maven { + name = "snapshots" + url = "https://repo.polyfrost.cc/snapshots" + credentials(PasswordCredentials) + authentication { + basic(BasicAuthentication) + } + } + maven { + name = "private" + url = "https://repo.polyfrost.cc/private" + credentials(PasswordCredentials) + authentication { + basic(BasicAuthentication) + } + } + } }
\ No newline at end of file |