From fe1010a4d64ff60613cddbfcb25a5baf617d0a2e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 7 Jul 2023 19:59:50 +0200 Subject: [PATCH] made it run --- build.gradle | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 0c42231..c9a531d 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ version = mod_version group = mod_group_id base { - archivesName = mod_id + archivesName = mod_name } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. @@ -79,10 +79,6 @@ minecraft { source sourceSets.main } } - - lazyToken('minecraft_classpath') { - configurations.embed.copyRecursive().resolve().collect { it.absolutePath }.join(File.pathSeparator) - } } client { @@ -109,6 +105,12 @@ minecraft { // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } + + all { + lazyToken('minecraft_classpath') { + configurations.embed.copyRecursive().resolve().collect { it.absolutePath }.join(File.pathSeparator) + } + } } } @@ -201,7 +203,7 @@ tasks.named('jar', Jar).configure { // TODO figure out if leaving this out causes jgrapht to be left out of the jar // from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) } - + // This is the preferred method to reobfuscate your jar file finalizedBy 'reobfJar' }