Include the background ponies when building

This commit is contained in:
Sollace 2019-06-12 16:37:50 +02:00
parent 45fc97e16e
commit a1aae12709

View file

@ -55,29 +55,6 @@ dependencies {
include "com.minelittlepony:HDSkins:${project.hd_skins_version}" include "com.minelittlepony:HDSkins:${project.hd_skins_version}"
} }
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
from 'LICENSE'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
// //
// Imports the Background Ponies from the MLP Community Skin Pack // Imports the Background Ponies from the MLP Community Skin Pack
// //
@ -96,6 +73,35 @@ task copyBGPones(type: Copy) {
} }
} }
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
from 'LICENSE'
exclude "/assets/minelittlepony/textures/entity/pony"
from(copyBGPones) {
into "/assets/minelittlepony/textures/entity/pony"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
publishing { publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {