Fix indentation

This commit is contained in:
Sollace 2019-01-26 08:59:07 +02:00
parent 893762b2ea
commit d6fd6dd166

View file

@ -1,23 +1,23 @@
buildscript { buildscript {
repositories { repositories {
jcenter() jcenter()
maven { maven {
name 'forge' name 'forge'
url 'http://files.minecraftforge.net/maven/' url 'http://files.minecraftforge.net/maven/'
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
} }
dependencies { maven {
classpath 'net.minecraftforge.gradle:ForgeGradle:' + project.forgeGradleVersion name = "sonatype"
classpath 'org.spongepowered:mixingradle:' + project.mixinGradleVersion url = "https://oss.sonatype.org/content/repositories/snapshots/"
} }
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:' + project.forgeGradleVersion
classpath 'org.spongepowered:mixingradle:' + project.mixinGradleVersion
}
} }
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.mixin' apply plugin: 'org.spongepowered.mixin'
@ -29,63 +29,63 @@ group = project.group
description = project.description description = project.description
minecraft { minecraft {
version = project.mcVersion + '-' + project.mcfVersion version = project.mcVersion + '-' + project.mcfVersion
mappings = project.mcMappings mappings = project.mcMappings
runDir = 'run' runDir = 'run'
replace '@MODID@', project.modid replace '@MODID@', project.modid
replace '@NAME@', project.name replace '@NAME@', project.name
replace '@AUTHOR@', project.author replace '@AUTHOR@', project.author
replace '@VERSION@', ver replace '@VERSION@', ver
replace '@DESCRIPTION@', project.description replace '@DESCRIPTION@', project.description
} }
mixin { mixin {
defaultObfuscationEnv notch defaultObfuscationEnv notch
} }
sourceCompatibility = 1.8 sourceCompatibility = 1.8
targetCompatibility = 1.8 targetCompatibility = 1.8
sourceSets { sourceSets {
external { external {
compileClasspath += main.compileClasspath compileClasspath += main.compileClasspath
} }
main { main {
compileClasspath += external.output compileClasspath += external.output
ext.refMap = project.refCore ext.refMap = project.refCore
} }
} }
repositories { repositories {
flatDir { flatDir {
dir 'lib' dir 'lib'
} }
} }
dependencies { dependencies {
deobfCompile('com.minelittlepony:jumpingcastle:1.12.2.1.0.0:universal') deobfCompile('com.minelittlepony:jumpingcastle:1.12.2.1.0.0:universal')
} }
processResources { processResources {
def props = [ def props = [
modid: project.modid, modid: project.modid,
name: project.title, name: project.title,
description: project.description, description: project.description,
version: ver, version: ver,
revision: project.buildRevision, revision: project.buildRevision,
mcversion: project.mcVersion, mcversion: project.mcVersion,
author: project.author author: project.author
] ]
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand props
}
from(sourceSets.main.resources.srcDirs) { from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info' include 'mcmod.info'
} expand props
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
} }
jar { jar {
baseName = "Unicopia-mc${project.mcVersion}" baseName = "Unicopia-mc${project.mcVersion}"
} }