mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Strip all the important stuff out of build.gradle
This commit is contained in:
parent
ca01b1cd19
commit
58a243845e
2 changed files with 33 additions and 19 deletions
46
build.gradle
46
build.gradle
|
@ -42,13 +42,12 @@ if (project.release == 'SNAPSHOT') {
|
||||||
version += "-${project.revision}-${project.hash}"
|
version += "-${project.revision}-${project.hash}"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.minelittlepony'
|
group = project.group
|
||||||
description = 'Mine Little Pony'
|
description = project.displayname
|
||||||
|
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = project.minecraft_version
|
version = project.minecraft_version
|
||||||
mappings = project.mappings_version
|
mappings = project.mappings_version
|
||||||
|
@ -73,27 +72,25 @@ dependencies {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Implementation-Version': "${project.version} (git-${project.hash})"
|
attributes 'Implementation-Version': "${project.version} (git-${project.hash})"
|
||||||
}
|
}
|
||||||
|
|
||||||
litemod.json {
|
litemod.json {
|
||||||
mcversion = '1.12.r2'
|
mcversion = project.minecraft_version
|
||||||
displayName = "Mine Little Pony"
|
displayName = project.displayname
|
||||||
author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221, Sollace'
|
author = project.authors
|
||||||
revision = project.revision
|
revision = project.revision
|
||||||
description = 'Mine Little Pony turns players and mobs into ponies'
|
description = project.description
|
||||||
description.minelittlepony = '''\
|
description.minelittlepony = project.description_mlp
|
||||||
Mine Little Pony turns players and mobs into ponies
|
description.hdskinsmod = project.description_hd
|
||||||
Press F9 ingame to access settings'''.stripIndent()
|
|
||||||
description.hdskinsmod = '''\
|
|
||||||
Separate skin server for Mine Little Pony that also supports HD skins.
|
|
||||||
Access via button on the main menu.'''.stripIndent()
|
|
||||||
mixinConfigs += [
|
mixinConfigs += [
|
||||||
'minelp.mixin.json',
|
'minelp.mixin.json',
|
||||||
'hdskins.mixin.json'
|
'hdskins.mixin.json'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
file('build.number').delete()
|
file('build.number').delete()
|
||||||
}
|
}
|
||||||
|
@ -104,33 +101,42 @@ jar {
|
||||||
classifier 'base'
|
classifier 'base'
|
||||||
extension 'jar'
|
extension 'jar'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def jarName = "mod-${project.name.toLowerCase()}"
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
extension 'litemod'
|
extension 'litemod'
|
||||||
classifier "mc$minecraft.version"
|
classifier "mc$minecraft.version"
|
||||||
baseName "mod-${project.name.toLowerCase()}"
|
baseName jarName
|
||||||
|
|
||||||
from sourceSets.hdskins.output
|
from sourceSets.hdskins.output
|
||||||
from litemod
|
from litemod
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
exclude dependency('deobf.com.mumfrey:liteloader:')
|
exclude dependency('deobf.com.mumfrey:liteloader:')
|
||||||
exclude dependency('deobf.org.ow2.asm:')
|
exclude dependency('deobf.org.ow2.asm:')
|
||||||
exclude 'META-INF/**'
|
exclude 'META-INF/**'
|
||||||
}
|
}
|
||||||
|
|
||||||
relocate 'org.apache.http.entity.mime', 'com.voxelmodpack.repack.org.apache.http.entity.mime'
|
relocate 'org.apache.http.entity.mime', 'com.voxelmodpack.repack.org.apache.http.entity.mime'
|
||||||
exclude 'dummyThing'
|
exclude 'dummyThing'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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 jarName
|
||||||
}
|
}
|
||||||
|
|
||||||
task skinZip(type: Zip) {
|
task skinZip(type: Zip) {
|
||||||
from fileTree('skins')
|
from fileTree('skins')
|
||||||
baseName 'Pony Skin Resources'
|
baseName 'Pony Skin Resources'
|
||||||
|
@ -145,9 +151,10 @@ reobf {
|
||||||
srgJar {
|
srgJar {
|
||||||
mappingType = 'SEARGE'
|
mappingType = 'SEARGE'
|
||||||
}
|
}
|
||||||
shadowJar{}
|
|
||||||
|
|
||||||
|
shadowJar{}
|
||||||
}
|
}
|
||||||
|
|
||||||
mixin {
|
mixin {
|
||||||
defaultObfuscationEnv notch
|
defaultObfuscationEnv notch
|
||||||
}
|
}
|
||||||
|
@ -155,5 +162,6 @@ mixin {
|
||||||
// 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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
group=com.minelittlepony
|
||||||
|
displayname=Mine Little Pony
|
||||||
|
authors=Verdana, Rene_Z, Mumfrey, Killjoy1221, Sollace
|
||||||
|
description=Mine Little Pony turns players and mobs into ponies
|
||||||
|
description_mlp=Mine Little Pony turns players and mobs into ponies. Press F9 ingame to access settings.
|
||||||
|
description_hd=Separate skin server for Mine Little Pony that also supports HD skins. Access via button on the main menu.
|
||||||
version=1.12.2.2
|
version=1.12.2.2
|
||||||
release=SNAPSHOT
|
release=SNAPSHOT
|
||||||
minecraft_version=1.12.2
|
minecraft_version=1.12.2
|
||||||
|
|
Loading…
Reference in a new issue