From e10f95dc403d5044680528e77fe0034ae85a4da6 Mon Sep 17 00:00:00 2001 From: ST0NEWALL <46624825+pklite@users.noreply.github.com> Date: Sun, 13 Oct 2019 01:21:55 -0400 Subject: [PATCH] =?UTF-8?q?Gradle:=20add=20the=20option=20to=20publish=20m?= =?UTF-8?q?aven=20artifacts/poms=20to=20the=20G=E2=80=A6=20(#1763)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 2eebb99ee0..0f7f596342 100644 --- a/build.gradle +++ b/build.gradle @@ -91,7 +91,7 @@ allprojects { apply plugin: 'maven' if (this.name != 'rs-client') apply plugin: 'checkstyle' - group = 'us.runelitepl' + group = 'com.openosrs' version = '1.5.35-SNAPSHOT' ext { @@ -114,6 +114,7 @@ subprojects { apply plugin: 'java-library' apply plugin: 'maven' apply plugin: 'fernflower' + apply plugin: 'maven-publish' sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -126,6 +127,24 @@ subprojects { options.incremental = true } + publishing { + repositories { + maven { + name = "runelite" + url = uri("https://maven.pkg.github.com/open-osrs/runelite") + credentials { + username = System.getProperty("gpr_user") + password = System.getProperty("gpr_key") + } + } + } + publications { + gpr(MavenPublication) { + from(components.java) + } + } + } + repositories { mavenLocal() @@ -149,17 +168,9 @@ subprojects { maxWarnings = 0 } - uploadArchives { - repositories { - mavenDeployer { - repository(url: System.getenv("NEXUS_URL")) { - authentication(userName: System.getenv("NEXUS_USER"), password: System.getenv("NEXUS_PASSWORD")) - } - } - } - } } + wrapper { gradleVersion = '5.6.2'