diff options
author | UpcraftLP <[email protected]> | 2019-02-15 22:26:03 +0100 |
---|---|---|
committer | keuin <[email protected]> | 2020-04-23 00:20:28 +0800 |
commit | 76e3c5979512215fa4aa2bf406a26d9d980251c0 (patch) | |
tree | 365c00a81fbb9080ecfb53a16ae643e00a4f35bd /build.gradle | |
parent | 26e61ceb27a2fd78f10ee42ff8539685a8f49373 (diff) |
fix indentation
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/build.gradle b/build.gradle index 1ef975e..4815d67 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id 'fabric-loom' version '0.2.0-SNAPSHOT' - id 'maven-publish' + id 'maven-publish' } sourceCompatibility = JavaVersion.VERSION_1_8 @@ -14,7 +14,7 @@ minecraft { } dependencies { - //to change the versions see the gradle.properties file + //to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}" modCompile "net.fabricmc:fabric-loader:${project.loader_version}" @@ -27,7 +27,7 @@ dependencies { // this fixes some edge cases with special characters not displaying correctly // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html tasks.withType(JavaCompile) { - options.encoding = "UTF-8" + options.encoding = "UTF-8" } // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task @@ -40,46 +40,46 @@ task sourcesJar(type: Jar, dependsOn: classes) { // create a javadoc file for publishing task javadocJar(type: Jar, dependsOn: javadoc) { - from javadoc.destinationDir - from "LICENSE" - classifier = "javadoc" + from javadoc.destinationDir + from "LICENSE" + classifier = "javadoc" } // make the javadoc tool be more lenient when using Java 8 // this fixes the javadoc tool breaking on things like self-closed <br /> tags // see https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html if (JavaVersion.current().isJava8Compatible()) { - allprojects { - tasks.withType(Javadoc) { - options.addStringOption('Xdoclint:none', '-quiet') - } - } + allprojects { + tasks.withType(Javadoc) { + options.addStringOption('Xdoclint:none', '-quiet') + } + } } jar { - from "LICENSE" + from "LICENSE" } // configure the maven publication publishing { - publications { + publications { + mavenJava(MavenPublication) { + // add all the jars that should be included when publishing to maven + artifact(jar) { + builtBy remapJar + } + artifact javadocJar + artifact(sourcesJar) { + builtBy remapSourcesJar + } + } + } - mavenJava(MavenPublication) { - // add all the jars that should be included when publishing to maven - artifact jar - artifact javadocJar - artifact sourcesJar - } - } - - // select the repositories you want to publish to - repositories { - // uncomment to publish to the local maven - // mavenLocal() - } + // select the repositories you want to publish to + repositories { + // uncomment to publish to the local maven + // mavenLocal() + } } - -// make sure that jars are properly remapped before uploading -tasks.publish.dependsOn build tasks.build.dependsOn javadocJar |