Update BootstrapTask.kt (#2185)

bootstrap fix.

injection annotation now uses the GH raw jar instead of trying to go via the maven repo.
This commit is contained in:
Kyle
2020-01-03 13:26:03 +00:00
committed by GitHub
parent cfa501dea5
commit 0531135f5f

View File

@@ -44,7 +44,7 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
val version = splat[2]
lateinit var path: String
if (it.file.name.contains(ProjectVersions.rlVersion)) {
if (it.file.name.contains(ProjectVersions.rlVersion) || it.file.name.contains("injection-annotations")) {
path = "https://github.com/open-osrs/hosting/raw/master/${type}/${it.file.name}"
} else if (!group.contains("runelite")) {
path = "https://repo.maven.apache.org/maven2/" + group.replace(".", "/") + "/${name}/$version/${name}-$version"