diff --git a/build.gradle b/build.gradle index 8864a880..8f157188 100644 --- a/build.gradle +++ b/build.gradle @@ -55,29 +55,6 @@ dependencies { 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 // @@ -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 { publications { maven(MavenPublication) {