From 4469a89aaab3058b123bd416b70b4f3b480dd48b Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 4 Jul 2020 03:19:38 -0400 Subject: [PATCH] Point all new Maven artifact deploys to Nexus --- api/build.gradle | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index 245165348..4240658d0 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -92,10 +92,14 @@ publishing { repositories { maven { - name = 'myRepo' - def base = 'file:///maven-repo' - def releasesRepoUrl = "$base/releases" - def snapshotsRepoUrl = "$base/snapshots" + credentials { + username project.findProperty('nexusUsername') ?: '' + password project.findProperty('nexusPassword') ?: "" + } + name = 'velocity-nexus' + def base = 'https://nexus.velocitypowered.com/repository/velocity-artifacts' + def releasesRepoUrl = "$base-releases/" + def snapshotsRepoUrl = "$base-snapshots/" url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl } }