From c322cbd3de7d0d9ca08f16a9ce384ef4e7933c7e Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 22 Sep 2016 20:33:47 +0100 Subject: [PATCH] Use weave Update to gradle 3.1 Add new maven handling --- .gitignore | 3 +- Jenkinsfile | 15 ++++ build.gradle | 83 +++--------------- gradle/wrapper/gradle-wrapper.jar | Bin 53324 -> 52818 bytes gradle/wrapper/gradle-wrapper.properties | 4 +- gradlew | 5 ++ gradlew.bat | 6 -- .../net/fabricmc/loom/task/DownloadTask.java | 2 +- .../loom/task/GenVSCodeProjectTask.java | 2 +- .../net/fabricmc/loom/task/MergeJarsTask.java | 2 +- 10 files changed, 40 insertions(+), 82 deletions(-) create mode 100644 Jenkinsfile diff --git a/.gitignore b/.gitignore index 57e68c0..9023533 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ !/HEADER !/LICENSE !/README.md -!/settings.gradle \ No newline at end of file +!/settings.gradle +!/Jenkinsfile \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..963bbb2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,15 @@ +node { + stage 'Checkout' + + checkout scm + + stage 'Build' + + sh "rm -rf build/libs/" + sh "chmod +x gradlew" + sh "./gradlew build" + + stage "Archive artifacts" + + sh "./gradlew upload" +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7a021b6..fc362ed 100644 --- a/build.gradle +++ b/build.gradle @@ -5,16 +5,17 @@ plugins { id 'idea' id 'eclipse' - - id 'net.minecrell.licenser' version '0.2.1' } sourceCompatibility = 1.8 targetCompatibility = 1.8 +apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/maven.gradle' +apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/license.gradle' + group = 'net.fabricmc' archivesBaseName = project.name.toLowerCase() -version = '0.0.2-SNAPSHOT' +version = '0.0.3-SNAPSHOT' repositories { mavenCentral() @@ -40,22 +41,15 @@ configurations { dependencies { compile gradleApi() - shade 'org.zeroturnaround:zt-zip:1.9' - shade 'org.slf4j:slf4j-api:1.7.21' - shade 'org.slf4j:slf4j-simple:1.7.21' - shade 'com.google.code.gson:gson:2.6.2' - shade 'commons-io:commons-io:1.4' - shade 'com.google.guava:guava:19.0' - shade 'net.fabricmc:blending-jar:0.1.1.6' - shade 'net.fabricmc:enigma:+' - shade 'org.javassist:javassist:3.+' - shade 'org.bitbucket.mstrobel:procyon-compilertools:0.5.33.6-enigma' - shade 'de.sciss:syntaxpane:1.1.+' -} -license { - header file('HEADER') - include '**/*.java' + shade 'org.zeroturnaround:zt-zip:1.9' + shade 'org.slf4j:slf4j-api:1.7.21' + shade 'org.slf4j:slf4j-simple:1.7.21' + shade 'com.google.code.gson:gson:2.6.2' + shade 'commons-io:commons-io:1.4' + shade 'com.google.guava:guava:19.0' + shade 'net.fabricmc:weave:0.1.0.6' + shade 'cuchaz:enigma:0.11.0.5:lib' } sourceSets { @@ -73,58 +67,7 @@ jar { } } -uploadArchives { - repositories { - mavenDeployer { - if (project.hasProperty('mavenPass')) { - repository(url: 'http://mavenupload.modmuss50.me/') { - authentication(userName: 'buildslave', password: project.getProperty('mavenPass')) - } - } else { - repository(url: 'file:///var/www/maven/') - } - - pom { - artifactId = project.archivesBaseName - - project { - name = project.name - description = project.description - packaging = 'jar' - url = project.url - - scm { - url = 'https://github.com/FabricMC/fabric-loom' - connection = 'scm:git:git@github.com:FabricMC/fabric-loom.git' - developerConnection = 'scm:git:git@github.com:FabricMC/fabric-loom.git' - } - - issueManagement { - system = 'GitHub' - url = 'https://github.com/FabricMC/fabric-loom/issues' - } - - licenses { - license { - name = 'MIT License' - url = 'https://github.com/FabricMC/fabric-loom/blob/master/LICENSE' - distribution = 'repo' - } - } - - developers { - developer { - id = 'modmuss50' - name = 'modmuss50' - roles { role 'developer' } - } - } - } - } - } - } -} task wrapper(type: Wrapper) { - gradleVersion = '3.0' + gradleVersion = '3.1' } diff --git a/gradle/wrapper/gradle-wrapper.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Fd7*OGb;NhY4_Rh>jeS95ilJM6s7O4 zLCQW5aO*SFq@EFK+DCeigTQnPnSTSKyw@$mbgenCX$Sw~7@FEd*aS-nHEh;cA2{|X zghkE%&#)g<`Uk*wCI1Y&w}|N9{9z4%fKKJGXXMb*QtW>`N{$k3Y{PQr4XeAN4-Ab~ zKz#?~??WAikqK*|I|I+|mH-=})q7-En2oUN#{Gb_Rd?r|trqu>=R5F&FUkY(lSWvQ az|hu#zsdYP2m(&FK*@% optionalVersion = mcManifest.versions.stream().filter(versions -> versions.id.equalsIgnoreCase(extension.version)).findFirst(); if (optionalVersion.isPresent()) { diff --git a/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java b/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java index e05199b..37df9e2 100644 --- a/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java +++ b/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java @@ -77,7 +77,7 @@ public class GenVSCodeProjectTask extends DefaultTask { element = new JsonPrimitive("vscode"); jsonObject.add("outputDirectory", element); - FileUtils.write(configFile, gson.toJson(jsonObject), Charset.defaultCharset()); + FileUtils.writeStringToFile(configFile, gson.toJson(jsonObject), "UF-8"); } } diff --git a/src/main/java/net/fabricmc/loom/task/MergeJarsTask.java b/src/main/java/net/fabricmc/loom/task/MergeJarsTask.java index a71d3b0..6d6b5b5 100644 --- a/src/main/java/net/fabricmc/loom/task/MergeJarsTask.java +++ b/src/main/java/net/fabricmc/loom/task/MergeJarsTask.java @@ -24,9 +24,9 @@ package net.fabricmc.loom.task; -import net.fabricmc.blendingjar.JarMerger; import net.fabricmc.loom.LoomGradleExtension; import net.fabricmc.loom.util.Constants; +import net.fabricmc.weave.merge.JarMerger; import org.gradle.api.DefaultTask; import org.gradle.api.tasks.TaskAction;