diff --git a/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy b/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy index d683e3e..7fbc0ca 100644 --- a/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy +++ b/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy @@ -134,7 +134,10 @@ class ArclightGradlePlugin implements Plugin { } if (arclightExt.reobfVersion) { File map = project.file("${project.buildDir}/arclight_cache/tmp_srg/reobf_version_${arclightExt.bukkitVersion}.srg") - if (!map.exists()) map.createNewFile() + if (!map.exists()) { + map.parentFile.mkdirs() + map.createNewFile() + } map.text = "PK: org/bukkit/craftbukkit/v org/bukkit/craftbukkit/${arclightExt.bukkitVersion}" project.tasks.withType(RenameJarInPlace).each { task -> task.doFirst {