mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Clean out build.gradle
This commit is contained in:
parent
85e346b378
commit
3de5842452
2 changed files with 19 additions and 82 deletions
102
build.gradle
102
build.gradle
|
@ -57,8 +57,6 @@ sourceSets {
|
||||||
// Client-only code
|
// Client-only code
|
||||||
compileClasspath += main.compileClasspath
|
compileClasspath += main.compileClasspath
|
||||||
compileClasspath += main.output
|
compileClasspath += main.output
|
||||||
compileClasspath += common.output
|
|
||||||
ext.refMap = 'minelp.mixin.refmap.json'
|
|
||||||
}
|
}
|
||||||
main {
|
main {
|
||||||
}
|
}
|
||||||
|
@ -80,11 +78,9 @@ minecraft {
|
||||||
client {
|
client {
|
||||||
workingDirectory project.file('run')
|
workingDirectory project.file('run')
|
||||||
|
|
||||||
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
property 'forge.logging.markers', 'SCAN'
|
||||||
property 'forge.logging.console.level', 'debug'
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
|
|
||||||
mods {
|
mods {
|
||||||
minelittlepony {
|
minelittlepony {
|
||||||
// TODO: Remember to add /bin/default to the Environment configs
|
// TODO: Remember to add /bin/default to the Environment configs
|
||||||
|
@ -93,20 +89,13 @@ minecraft {
|
||||||
source sourceSets.client
|
source sourceSets.client
|
||||||
source sourceSets.main
|
source sourceSets.main
|
||||||
source sourceSets.fml
|
source sourceSets.fml
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
}
|
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
// jcenter()
|
|
||||||
maven {
|
maven {
|
||||||
url = 'https://repo.spongepowered.org/maven'
|
url = 'https://repo.spongepowered.org/maven'
|
||||||
}
|
}
|
||||||
|
@ -116,37 +105,37 @@ dependencies {
|
||||||
// TODO: Add HDSkins as a dependency. It won't compile without it.
|
// TODO: Add HDSkins as a dependency. It won't compile without it.
|
||||||
// TODO: Add KirinUI as a dependency.
|
// TODO: Add KirinUI as a dependency.
|
||||||
|
|
||||||
minecraft 'net.minecraftforge:forge:1.13.2-25.0.90'
|
minecraft "net.minecraftforge:forge:" + project.minecraft_version + "-" + project.forge_version
|
||||||
|
|
||||||
// use the same version as httpclient
|
|
||||||
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Implementation-Version': "${project.version} (git-${project.hash})"
|
attributes(
|
||||||
|
"Implementation-Version": "${version} (git-${project.hash})",
|
||||||
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from sourceSets.common.output
|
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
|
|
||||||
from sourceSets.client.output
|
from sourceSets.client.output
|
||||||
from sourceSets.fml.output
|
from sourceSets.fml.output
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
|
|
||||||
classifier 'base'
|
classifier 'base'
|
||||||
extension 'jar'
|
extension 'jar'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Imports the Background Ponies from the MLP Community Skin Pack
|
||||||
|
//
|
||||||
task copyBGPones(type: Copy) {
|
task copyBGPones(type: Copy) {
|
||||||
|
|
||||||
def illegals = /[^a-z0-9_\/.-]/
|
def illegals = /[^a-z0-9_\/.-]/
|
||||||
|
|
||||||
from "skins/Background Ponies"
|
from "skins/Background Ponies"
|
||||||
// TODO: What is tempDir????
|
|
||||||
into temporaryDir
|
into temporaryDir
|
||||||
|
|
||||||
eachFile {
|
eachFile {
|
||||||
|
@ -157,66 +146,13 @@ task copyBGPones(type: Copy) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
shadowJar {
|
|
||||||
// classifier "mc$minecraft.version"
|
|
||||||
|
|
||||||
// TODO: Remember, we still have to include HDSkins in our build litemod, even if it's a separate repository now
|
|
||||||
|
|
||||||
from sourceSets.common.output
|
|
||||||
|
|
||||||
from sourceSets.client.output
|
|
||||||
from sourceSets.fml.output
|
|
||||||
|
|
||||||
exclude "/assets/minelittlepony/textures/entity/pony"
|
|
||||||
from(copyBGPones) {
|
|
||||||
into "/assets/minelittlepony/textures/entity/pony"
|
|
||||||
}
|
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
exclude dependency('deobf.org.ow2.asm:')
|
|
||||||
exclude dependency('org.spongepowered:mixin:')
|
|
||||||
exclude 'META-INF/**'
|
|
||||||
}
|
|
||||||
|
|
||||||
relocate 'org.apache.http.entity.mime', 'com.voxelmodpack.repack.org.apache.http.entity.mime'
|
|
||||||
exclude 'dummyThing'
|
|
||||||
doLast {
|
|
||||||
file('build/libs/' + archivesBaseName + '-' + version + '-base.jar').delete();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task srgJar(type: Jar) {
|
|
||||||
from sourceSets.common.output
|
|
||||||
|
|
||||||
from sourceSets.main.output
|
|
||||||
from sourceSets.client.output
|
|
||||||
from sourceSets.fml.output
|
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
|
|
||||||
classifier "mc$minecraft.version-srg"
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
task horseLib(type: Jar) {
|
|
||||||
from sourceSets.common.output
|
|
||||||
|
|
||||||
from sourceSets.main.output
|
|
||||||
|
|
||||||
// replace '@VERSION@', project.version
|
|
||||||
|
|
||||||
baseName = "HoarseLib"
|
|
||||||
}
|
|
||||||
|
|
||||||
//sourceJar.enabled = false
|
|
||||||
|
|
||||||
//reobf {
|
|
||||||
// srgJar {
|
|
||||||
// mappingType = 'SEARGE'
|
|
||||||
// }
|
|
||||||
//
|
//
|
||||||
// shadowJar{}
|
// Creates HorseLib
|
||||||
//}
|
// A common library for mods to load MineLP features on the server without
|
||||||
|
// any client components
|
||||||
|
task horseLib(type: Jar) {
|
||||||
|
// TODO: Add KirinUI as a dependency.
|
||||||
|
from sourceSets.main.output
|
||||||
|
|
||||||
|
baseName = "HorseLib"
|
||||||
|
}
|
||||||
|
|
|
@ -7,5 +7,6 @@ description=Mine Little Pony turns players and mobs into ponies. Press F9 ingame
|
||||||
version=3.2
|
version=3.2
|
||||||
release=SNAPSHOT
|
release=SNAPSHOT
|
||||||
minecraft_version=1.13.2
|
minecraft_version=1.13.2
|
||||||
|
forge_version=25.0.107
|
||||||
mappings_channel=snapshot
|
mappings_channel=snapshot
|
||||||
mappings_version=20190324
|
mappings_version=20190324
|
||||||
|
|
Loading…
Reference in a new issue