mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
build.gradle tabs -> spaces
This commit is contained in:
parent
cbcc470a63
commit
e02eac5fab
1 changed files with 58 additions and 58 deletions
116
build.gradle
116
build.gradle
|
@ -1,19 +1,19 @@
|
||||||
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 {
|
maven {
|
||||||
name = 'sponge'
|
name = 'sponge'
|
||||||
url = 'https://repo.spongepowered.org/maven'
|
url = 'https://repo.spongepowered.org/maven'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
||||||
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.liteloader'
|
apply plugin: 'net.minecraftforge.gradle.liteloader'
|
||||||
|
@ -27,76 +27,76 @@ targetCompatibility = 1.8
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.12.2"
|
version = "1.12.2"
|
||||||
mappings = 'snapshot_20170919'
|
mappings = 'snapshot_20170919'
|
||||||
runDir = 'run'
|
runDir = 'run'
|
||||||
replace '@VERSION@', project.version
|
replace '@VERSION@', project.version
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
hdskins {
|
hdskins {
|
||||||
compileClasspath += main.compileClasspath
|
compileClasspath += main.compileClasspath
|
||||||
ext.refMap = 'hdskins.mixin.refmap.json'
|
ext.refMap = 'hdskins.mixin.refmap.json'
|
||||||
}
|
}
|
||||||
main {
|
main {
|
||||||
compileClasspath += hdskins.output
|
compileClasspath += hdskins.output
|
||||||
ext.refMap = 'minelp.mixin.refmap.json'
|
ext.refMap = 'minelp.mixin.refmap.json'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
litemod {
|
litemod {
|
||||||
doFirst {
|
doFirst {
|
||||||
json {
|
json {
|
||||||
mcversion = '1.12.r2'
|
mcversion = '1.12.r2'
|
||||||
author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221'
|
author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221'
|
||||||
description = 'Mine Little Pony turns players and mobs into ponies'
|
description = 'Mine Little Pony turns players and mobs into ponies'
|
||||||
description.minelittlepony = '''\
|
description.minelittlepony = '''\
|
||||||
Mine Little Pony turns players and mobs into ponies
|
Mine Little Pony turns players and mobs into ponies
|
||||||
Press F9 ingame to access settings'''
|
Press F9 ingame to access settings'''
|
||||||
description.hdskinsmod = '''\
|
description.hdskinsmod = '''\
|
||||||
Separate skin server for Mine Little Pony that also supports HD skins.
|
Separate skin server for Mine Little Pony that also supports HD skins.
|
||||||
Access via button on the main menu.'''
|
Access via button on the main menu.'''
|
||||||
|
|
||||||
mixinConfigs += [
|
mixinConfigs += [
|
||||||
'minelp.mixin.json',
|
'minelp.mixin.json',
|
||||||
'hdskins.mixin.json'
|
'hdskins.mixin.json'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from sourceSets.hdskins.output
|
from sourceSets.hdskins.output
|
||||||
from litemod
|
from litemod
|
||||||
}
|
}
|
||||||
sourceJar {
|
sourceJar {
|
||||||
// add hdskins sources
|
// add hdskins sources
|
||||||
from sourceSets.hdskins.allSource
|
from sourceSets.hdskins.allSource
|
||||||
}
|
}
|
||||||
task srgJar(type: Jar) {
|
task srgJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
from sourceSets.hdskins.output
|
from sourceSets.hdskins.output
|
||||||
from litemod
|
from litemod
|
||||||
classifier "mc$minecraft.version-srg"
|
classifier "mc$minecraft.version-srg"
|
||||||
baseName "mod-${project.name.toLowerCase()}"
|
baseName "mod-${project.name.toLowerCase()}"
|
||||||
}
|
}
|
||||||
task skinZip(type: Zip) {
|
task skinZip(type: Zip) {
|
||||||
from fileTree('skins')
|
from fileTree('skins')
|
||||||
baseName 'Pony Skin Resources'
|
baseName 'Pony Skin Resources'
|
||||||
version 'v1'
|
version 'v1'
|
||||||
}
|
}
|
||||||
|
|
||||||
reobf {
|
reobf {
|
||||||
srgJar {
|
srgJar {
|
||||||
mappingType = 'SEARGE'
|
mappingType = 'SEARGE'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mixin {
|
mixin {
|
||||||
defaultObfuscationEnv notch
|
defaultObfuscationEnv notch
|
||||||
}
|
}
|
||||||
|
|
||||||
// windows only
|
// windows only
|
||||||
task deploy(type: Copy, dependsOn: build) {
|
task deploy(type: Copy, dependsOn: build) {
|
||||||
from jar.archivePath
|
from jar.archivePath
|
||||||
into file("$System.env.APPDATA/.minecraft/mods")
|
into file("$System.env.APPDATA/.minecraft/mods")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue