You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,27 @@ jar {
253
253
from { ["CREDITS.md", "LICENSE.txt", "3RD_PARTY_LICENSE.txt"] } //copy files from the repository root into the jar
254
254
}
255
255
256
+
privatevoidminifyJsons(Stringfdir) {
257
+
for (finaldef taskName in getGradle().getStartParameter().getTaskNames()) {
258
+
if (taskName.toLowerCase().contains("rundata")) {
259
+
return//skip minimization of jsons during any RunData tasks because they will be (re-)generated during this task and should only be minimized for builds anyways
260
+
}
261
+
}
262
+
263
+
print"minmizing jsons..."
264
+
long startTime =System.nanoTime()
265
+
for (File file in fileTree(dir: fdir, include: "**/*.json")) {
@@ -287,27 +308,6 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources
287
308
}
288
309
}
289
310
290
-
privatevoidminifyJsons(Stringfdir) {
291
-
for (finaldef taskName in getGradle().getStartParameter().getTaskNames()) {
292
-
if (taskName.toLowerCase().contains("rundata")) {
293
-
return//skip minimization of jsons during any RunData tasks because they will be (re-)generated during this task and should only be minimized for builds anyways
294
-
}
295
-
}
296
-
297
-
print"minmizing jsons..."
298
-
long startTime =System.nanoTime()
299
-
for (File file in fileTree(dir: fdir, include: "**/*.json")) {
0 commit comments