diff --git a/build.gradle.kts b/build.gradle.kts index bf608ae..e9d8841 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -93,31 +93,8 @@ neoForge { tasks { processResources { - if (modIsInCI) { - doLast { - val jsonMinifyStart: Long = System.currentTimeMillis() - var jsonMinified: Long = 0 - var jsonBytesBefore: Long = 0 - var jsonBytesAfter: Long = 0 - - fileTree(mapOf("dir" to outputs.files.asPath, "include" to "**/*.json")).forEach { - jsonMinified++ - jsonBytesBefore += it.length() - try { - it.writeText(JsonOutput.toJson(JsonSlurper().parse(it)).replace("\"__comment__\":\"This file was automatically created by mcresources\",", "")) - } catch (e: Exception) { - println("JSON Error in ${it.path}") - throw e - } - - jsonBytesAfter += it.length() - } - println("Minified $jsonMinified json files. Reduced ${jsonBytesBefore / 1024} kB to ${(jsonBytesAfter / 1024)} kB. Took ${System.currentTimeMillis() - jsonMinifyStart} ms") - } - } } - jar { manifest { attributes["Implementation-Version"] = project.version