diff --git a/api/build.gradle b/api/build.gradle index 6151f5c0f..bc79b3b3c 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -84,10 +84,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 } }