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') {
when {
branch '1.12.2'
}
steps {
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/)
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"
archivesBaseName = "ActuallyAdditions"
if(hasProperty('buildnumber')){
version = "${version}-${this.properties['buildnumber']}"
if (System.getenv('BUILD_NUMBER') != null) {
version += "." + System.getenv('BUILD_NUMBER')
}
minecraft {

View file

@ -28,7 +28,7 @@ public class ThreadSpecialFetcher extends Thread {
public void run() {
ActuallyAdditions.LOGGER.info("Fetching Special People Stuff...");
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();
specialProperties.load(new InputStreamReader(url.openStream()));
SpecialRenderInit.parse(specialProperties);

View file

@ -30,7 +30,7 @@ public class ThreadUpdateChecker extends Thread {
public void run() {
ActuallyAdditions.LOGGER.info("Starting Update Check...");
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();
updateProperties.load(new InputStreamReader(newestURL.openStream()));