create local cache dir if it doesn't exist
All checks were successful
Publish to snapshot maven / build (push) Successful in 20s
All checks were successful
Publish to snapshot maven / build (push) Successful in 20s
This commit is contained in:
parent
e8d5b61ab8
commit
43adf0206f
|
@ -41,6 +41,7 @@ class PhytotelmaPlugin : Plugin<Project> {
|
||||||
globalCacheDir = project.gradle.gradleUserHomeDir.resolve("caches/phytotelma/").toPath()
|
globalCacheDir = project.gradle.gradleUserHomeDir.resolve("caches/phytotelma/").toPath()
|
||||||
globalCacheDir.createDirectories()
|
globalCacheDir.createDirectories()
|
||||||
localCacheDir = project.projectDir.resolve(".gradle/phytotelma/cache/").toPath()
|
localCacheDir = project.projectDir.resolve(".gradle/phytotelma/cache/").toPath()
|
||||||
|
localCacheDir.createDirectories()
|
||||||
|
|
||||||
project.plugins.let {
|
project.plugins.let {
|
||||||
it.apply("java-library")
|
it.apply("java-library")
|
||||||
|
|
|
@ -10,7 +10,7 @@ import dev.frogmc.thyroxine.provider.MojmapProvider
|
||||||
import dev.frogmc.thyroxine.provider.ParchmentProvider
|
import dev.frogmc.thyroxine.provider.ParchmentProvider
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import kotlin.io.path.notExists
|
import kotlin.io.path.*
|
||||||
|
|
||||||
abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
|
abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
|
||||||
println("Valid version! $version")
|
println("Valid version! $version")
|
||||||
val clientJar = VersionChecker.downloadClient(version)
|
val clientJar = VersionChecker.downloadClient(version)
|
||||||
val remappedJar = PhytotelmaPlugin.localCacheDir.resolve("net/minecraft/client/client-$version-remapped.jar")
|
val remappedJar = PhytotelmaPlugin.localCacheDir.resolve("net/minecraft/client/client-$version-remapped.jar")
|
||||||
|
remappedJar.createParentDirectories()
|
||||||
PhytotelmaPlugin.remappedGameJarPath = remappedJar
|
PhytotelmaPlugin.remappedGameJarPath = remappedJar
|
||||||
println("Time to setup Minecraft!")
|
println("Time to setup Minecraft!")
|
||||||
val applyAW = AccessWidener.needsUpdate(getProject())
|
val applyAW = AccessWidener.needsUpdate(getProject())
|
||||||
|
|
Loading…
Reference in a new issue