diff --git a/build.gradle b/build.gradle index ec855c4..d037bf8 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'io.izzel.arclight' -version '1.5' +version '1.6' repositories { mavenCentral() diff --git a/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy b/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy index efc466c..2a0894a 100644 --- a/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy +++ b/src/main/groovy/io/izzel/arclight/gradle/ArclightGradlePlugin.groovy @@ -94,6 +94,9 @@ class ArclightGradlePlugin implements Plugin { def installerJar = project.file("${project.buildDir}/arclight_cache/forge-${arclightExt.mcVersion}-${arclightExt.forgeVersion}-installer.jar") downloadInstaller.doFirst { if (installerJar.exists()) throw new StopExecutionException() + if (installerJar.parentFile != null) { + installerJar.parentFile.mkdirs() + } def installerUrl = "https://files.minecraftforge.net/maven/net/minecraftforge/forge/${arclightExt.mcVersion}-${arclightExt.forgeVersion}/forge-${arclightExt.mcVersion}-${arclightExt.forgeVersion}-installer.jar" Utils.download(installerUrl, installerJar) }