save remapped/aw'd jar in project-specific location
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
This commit is contained in:
parent
a862a16e80
commit
e8d5b61ab8
|
@ -40,6 +40,7 @@ class PhytotelmaPlugin : Plugin<Project> {
|
||||||
println("> Applying FrogMC Gradle Plugin")
|
println("> Applying FrogMC Gradle Plugin")
|
||||||
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()
|
||||||
|
|
||||||
project.plugins.let {
|
project.plugins.let {
|
||||||
it.apply("java-library")
|
it.apply("java-library")
|
||||||
|
@ -50,7 +51,7 @@ class PhytotelmaPlugin : Plugin<Project> {
|
||||||
project.repositories.apply {
|
project.repositories.apply {
|
||||||
maven {
|
maven {
|
||||||
it.name = "Minecraft/Local"
|
it.name = "Minecraft/Local"
|
||||||
it.url = globalCacheDir.toUri()
|
it.url = localCacheDir.toUri()
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
it.name = "FrogMC Releases"
|
it.name = "FrogMC Releases"
|
||||||
|
@ -195,6 +196,7 @@ class PhytotelmaPlugin : Plugin<Project> {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
lateinit var localCacheDir: Path
|
||||||
lateinit var globalCacheDir: Path
|
lateinit var globalCacheDir: Path
|
||||||
lateinit var minecraftVersion: String
|
lateinit var minecraftVersion: String
|
||||||
lateinit var remappedGameJarPath: Path
|
lateinit var remappedGameJarPath: Path
|
||||||
|
|
|
@ -26,7 +26,7 @@ abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
|
||||||
PhytotelmaPlugin.parchmentVersion = parchment
|
PhytotelmaPlugin.parchmentVersion = parchment
|
||||||
println("Valid version! $version")
|
println("Valid version! $version")
|
||||||
val clientJar = VersionChecker.downloadClient(version)
|
val clientJar = VersionChecker.downloadClient(version)
|
||||||
val remappedJar = clientJar.resolveSibling("client-$version-remapped.jar")
|
val remappedJar = PhytotelmaPlugin.localCacheDir.resolve("net/minecraft/client/client-$version-remapped.jar")
|
||||||
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