fixed 1.12 maven publish

This commit is contained in:
Ell 2020-11-07 14:38:30 +01:00
parent 58a98fb2c3
commit 9a15bee50f
5 changed files with 8 additions and 5 deletions

3
Jenkinsfile vendored
View file

@ -20,6 +20,9 @@ pipeline {
} }
stage('Publish') { stage('Publish') {
when {
branch '1.12.2'
}
steps { steps {
sh './gradlew publish --no-daemon' sh './gradlew publish --no-daemon'
} }

View file

@ -5,4 +5,4 @@ For more information, visit the main CurseForge Page by [clicking here](http://m
Jenkins: [Click here](https://ci.ellpeck.de/blue/organizations/jenkins/ActuallyAdditions/) Jenkins: [Click here](https://ci.ellpeck.de/blue/organizations/jenkins/ActuallyAdditions/)
Maven: [Click here](https://maven.ellpeck.de/de/ellpeck/actuallyadditions/) Maven: [Click here](https://maven.ellpeck.de/de/ellpeck/actuallyadditions/)
![](https://raw.githubusercontent.com/Ellpeck/ActuallyAdditions/master/pics/logo.png) ![](https://raw.githubusercontent.com/Ellpeck/ActuallyAdditions/main/pics/logo.png)

View file

@ -18,8 +18,8 @@ version = "1.12.2-r151"
group = "de.ellpeck.actuallyadditions" group = "de.ellpeck.actuallyadditions"
archivesBaseName = "ActuallyAdditions" archivesBaseName = "ActuallyAdditions"
if(hasProperty('buildnumber')){ if (System.getenv('BUILD_NUMBER') != null) {
version = "${version}-${this.properties['buildnumber']}" version += "." + System.getenv('BUILD_NUMBER')
} }
minecraft { minecraft {

View file

@ -28,7 +28,7 @@ public class ThreadSpecialFetcher extends Thread {
public void run() { public void run() {
ActuallyAdditions.LOGGER.info("Fetching Special People Stuff..."); ActuallyAdditions.LOGGER.info("Fetching Special People Stuff...");
try { try {
URL url = new URL("https://raw.githubusercontent.com/Ellpeck/ActuallyAdditions/master/specialPeopleStuff.properties"); URL url = new URL("https://raw.githubusercontent.com/Ellpeck/ActuallyAdditions/main/specialPeopleStuff.properties");
Properties specialProperties = new Properties(); Properties specialProperties = new Properties();
specialProperties.load(new InputStreamReader(url.openStream())); specialProperties.load(new InputStreamReader(url.openStream()));
SpecialRenderInit.parse(specialProperties); SpecialRenderInit.parse(specialProperties);

View file

@ -30,7 +30,7 @@ public class ThreadUpdateChecker extends Thread {
public void run() { public void run() {
ActuallyAdditions.LOGGER.info("Starting Update Check..."); ActuallyAdditions.LOGGER.info("Starting Update Check...");
try { try {
URL newestURL = new URL("https://raw.githubusercontent.com/Ellpeck/ActuallyAdditions/master/update/updateVersions.properties"); URL newestURL = new URL("https://raw.githubusercontent.com/Ellpeck/ActuallyAdditions/main/update/updateVersions.properties");
Properties updateProperties = new Properties(); Properties updateProperties = new Properties();
updateProperties.load(new InputStreamReader(newestURL.openStream())); updateProperties.load(new InputStreamReader(newestURL.openStream()));