From 6759c14ea8ca65bfb637f5325363bf312bc83009 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Thu, 9 Dec 2021 10:08:12 -0800 Subject: [PATCH] 3.1.1-SNAPSHOT; publish to PaperMC repository --- build.gradle | 2 +- gradle/publish.gradle | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 21407834c..211ce2b9e 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ allprojects { apply plugin: "com.github.spotbugs" group 'com.velocitypowered' - version '3.1.0' + version '3.1.1-SNAPSHOT' ext { // dependency versions diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 7c79945e9..9a9be573a 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -1,16 +1,13 @@ publishing { repositories { maven { - credentials { - username System.getenv("NEXUS_USERNAME") - password System.getenv("NEXUS_PASSWORD") - } + credentials(PasswordCredentials.class) - name = 'velocity-nexus' - def base = 'https://nexus.velocitypowered.com/repository/velocity-artifacts' - def releasesRepoUrl = "$base-release/" + name = 'paper' + def base = 'https://papermc.io/repo/repository/maven-' + def releasesRepoUrl = "$base-releases/" def snapshotsRepoUrl = "$base-snapshots/" url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl } } -} \ No newline at end of file +}