gradle configuration update #7

Merged
UpcraftLP merged 9 commits from gradle-update into master 2019-02-16 00:17:56 +00:00
2 changed files with 38 additions and 38 deletions
Showing only changes of commit 8c0584bbaf - Show all commits

View File

@ -1,6 +1,6 @@
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
plugins {
id 'fabric-loom' version '0.2.0-SNAPSHOT'
id 'maven-publish'
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
id 'maven-publish'
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
sourceCompatibility = JavaVersion.VERSION_1_8
@ -14,7 +14,7 @@ minecraft {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
dependencies {
//to change the versions see the gradle.properties file
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
//to change the versions see the gradle.properties file
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
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 {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// 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"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
options.encoding = "UTF-8"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
@ -40,46 +40,46 @@ task sourcesJar(type: Jar, dependsOn: classes) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// create a javadoc file for publishing
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
from "LICENSE"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
classifier = "javadoc"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
from javadoc.destinationDir
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
from "LICENSE"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
classifier = "javadoc"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
// 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 {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
tasks.withType(Javadoc) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
options.addStringOption('Xdoclint:none', '-quiet')
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
allprojects {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
tasks.withType(Javadoc) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
options.addStringOption('Xdoclint:none', '-quiet')
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
jar {
from "LICENSE"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
from "LICENSE"
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
// configure the maven publication
publishing {
publications {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
publications {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
mavenJava(MavenPublication) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// add all the jars that should be included when publishing to maven
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
artifact(jar) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
builtBy remapJar
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
artifact javadocJar
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
artifact(sourcesJar) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
builtBy remapSourcesJar
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
mavenJava(MavenPublication) {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// add all the jars that should be included when publishing to maven
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
artifact jar
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
artifact javadocJar
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
artifact sourcesJar
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// select the repositories you want to publish to
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
repositories {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// uncomment to publish to the local maven
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// mavenLocal()
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// select the repositories you want to publish to
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
repositories {
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// uncomment to publish to the local maven
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// mavenLocal()
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
}
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
// make sure that jars are properly remapped before uploading
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
tasks.publish.dependsOn build
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
tasks.build.dependsOn javadocJar

modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation
modmuss50 commented 2019-02-15 21:03:34 +00:00 (Migrated from github.com)
Review

Bad indentation

Bad indentation

View File

@ -2,16 +2,16 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=19w07a
yarn_mappings=19w07a.6
loader_version=0.3.6.107
# check these on https://fabricmc.net/use
minecraft_version=19w07a
yarn_mappings=19w07a.6
loader_version=0.3.6.107
# Mod Properties
mod_version = 1.0.0
maven_group = net.fabricmc
archives_base_name = fabric-example-mod
mod_version = 1.0.0
maven_group = net.fabricmc
archives_base_name = fabric-example-mod
# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric
fabric_version=0.2.1.94
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric
fabric_version=0.2.1.94