package: upgrade http connections to rrn to https

This commit is contained in:
Max Weber
2021-10-23 02:22:17 -06:00
parent 021e8a4dcb
commit e27a887ed0

View File

@@ -25,6 +25,18 @@
allprojects {
apply plugin: "java"
repositories {
mavenLocal()
// Upgrade older plugins to use https for rrn
whenObjectAdded {
if (it instanceof MavenArtifactRepository && it.url?.scheme == "http" && it.url?.host == "repo.runelite.net") {
it.url = new URL("https", it.url.host, it.url.path)
print("Deprecated: accessing repo.runelite.net without tls")
}
}
}
compileJava {
options.release.set(8)
options.compilerArgs.add("-Xplugin:RuneLiteAPIRecorder")