From 78f2b83e7198e4323c81e989058c2371d8562929 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Fri, 10 Jun 2022 17:36:08 +0200 Subject: finish loader --- build.gradle | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'build.gradle') 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 -- cgit