File tree Expand file tree Collapse file tree
src/main/kotlin/net/msrandom/minecraftcodev/runs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- version =0.6.2
1+ version =0.6.3
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package net.msrandom.minecraftcodev.runs
22
33import net.msrandom.minecraftcodev.core.utils.applyPlugin
44import net.msrandom.minecraftcodev.core.utils.createSourceSetElements
5+ import net.msrandom.minecraftcodev.core.utils.getAsPath
56import net.msrandom.minecraftcodev.core.utils.getGlobalCacheDirectoryProvider
67import net.msrandom.minecraftcodev.runs.task.DownloadAssets
78import net.msrandom.minecraftcodev.runs.task.ExtractNatives
@@ -14,6 +15,7 @@ import org.gradle.internal.extensions.core.serviceOf
1415import org.gradle.jvm.toolchain.JavaLanguageVersion
1516import org.gradle.jvm.toolchain.JavaToolchainService
1617import org.gradle.util.internal.GUtil
18+ import kotlin.io.path.createDirectories
1719
1820class MinecraftCodevRunsPlugin <T : PluginAware > : Plugin <T > {
1921 override fun apply (target : T ) =
@@ -86,6 +88,10 @@ class MinecraftCodevRunsPlugin<T : PluginAware> : Plugin<T> {
8688 )
8789
8890 javaExec.dependsOn(configuration.sourceSet.map(SourceSet ::getClassesTaskName))
91+
92+ javaExec.doFirst {
93+ configuration.workingDirectory.getAsPath().createDirectories()
94+ }
8995 }
9096 }
9197 }
You can’t perform that action at this time.
0 commit comments