client: fix bootstrapping
This commit is contained in:
@@ -14,7 +14,6 @@ class BootstrapPlugin : Plugin<Project> {
|
|||||||
bootstrapDependencies(project(":runelite-api"))
|
bootstrapDependencies(project(":runelite-api"))
|
||||||
bootstrapDependencies(project(":runescape-api"))
|
bootstrapDependencies(project(":runescape-api"))
|
||||||
bootstrapDependencies(project(":http-api"))
|
bootstrapDependencies(project(":http-api"))
|
||||||
bootstrapDependencies(project(":injector"))
|
|
||||||
bootstrapDependencies(project(":runelite-client"))
|
bootstrapDependencies(project(":runelite-client"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,7 +30,6 @@ class BootstrapPlugin : Plugin<Project> {
|
|||||||
dependsOn(project(":runelite-api").tasks["publish"])
|
dependsOn(project(":runelite-api").tasks["publish"])
|
||||||
dependsOn(project(":runescape-api").tasks["publish"])
|
dependsOn(project(":runescape-api").tasks["publish"])
|
||||||
dependsOn(project(":http-api").tasks["publish"])
|
dependsOn(project(":http-api").tasks["publish"])
|
||||||
dependsOn(project(":injector").tasks["publish"])
|
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
copy {
|
copy {
|
||||||
@@ -41,7 +39,6 @@ class BootstrapPlugin : Plugin<Project> {
|
|||||||
copy {
|
copy {
|
||||||
from(
|
from(
|
||||||
"${buildDir}/repo/.",
|
"${buildDir}/repo/.",
|
||||||
"${parent?.projectDir}/injector/build/repo/.",
|
|
||||||
"${parent?.projectDir}/runelite-api/build/repo/.",
|
"${parent?.projectDir}/runelite-api/build/repo/.",
|
||||||
"${parent?.projectDir}/http-api/build/repo/.",
|
"${parent?.projectDir}/http-api/build/repo/.",
|
||||||
"${parent?.projectDir}/runescape-api/build/repo/."
|
"${parent?.projectDir}/runescape-api/build/repo/."
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import org.gradle.kotlin.dsl.get
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import java.security.MessageDigest
|
import java.security.MessageDigest
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
import kotlin.system.exitProcess
|
||||||
|
|
||||||
open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultTask() {
|
open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultTask() {
|
||||||
|
|
||||||
@@ -42,8 +43,7 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
|
|||||||
val version = splat[2]
|
val version = splat[2]
|
||||||
lateinit var path: String
|
lateinit var path: String
|
||||||
|
|
||||||
if (it.file.name.contains("injected-client") ||
|
if (it.file.name.contains("runelite-client") ||
|
||||||
it.file.name.contains("runelite-client") ||
|
|
||||||
it.file.name.contains("http-api") ||
|
it.file.name.contains("http-api") ||
|
||||||
it.file.name.contains("runescape-api") ||
|
it.file.name.contains("runescape-api") ||
|
||||||
it.file.name.contains("runelite-api")) {
|
it.file.name.contains("runelite-api")) {
|
||||||
@@ -63,6 +63,21 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
|
|||||||
}
|
}
|
||||||
path += "${name}/$version/${name}-$version.jar"
|
path += "${name}/$version/${name}-$version.jar"
|
||||||
}
|
}
|
||||||
|
else if (it.file.name.contains("gluegen"))
|
||||||
|
{
|
||||||
|
path = "http://repo.runelite.net/net/runelite/gluegen/gluegen-rt/" + version + "/" + it.file.name
|
||||||
|
}
|
||||||
|
else if (it.file.name.contains("jogl"))
|
||||||
|
{
|
||||||
|
path = "http://repo.runelite.net/net/runelite/jogl/jogl-all/" + version + "/" + it.file.name
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
println("ERROR: " + it.file.name + " has no download path!")
|
||||||
|
exitProcess(-1)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
val filePath = it.file.absolutePath
|
val filePath = it.file.absolutePath
|
||||||
val artifactFile = File(filePath)
|
val artifactFile = File(filePath)
|
||||||
|
|||||||
Reference in New Issue
Block a user