wikiscraper: Don't run by default (#1467)

* wikiscraper: Don't run by default

* client: scrape npc stats
This commit is contained in:
Owain van Brakel
2019-08-27 19:35:59 +02:00
committed by Ganom
parent 974373ddcf
commit 1747826700
2 changed files with 316 additions and 38 deletions

View File

@@ -1,5 +1,3 @@
apply plugin:'application'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
@@ -7,8 +5,6 @@ repositories {
description = 'RuneLite Wiki scraper'
mainClassName = "net.runelite.data.App"
dependencies {
api project(':cache')
api project(':runelite-api')
@@ -26,3 +22,14 @@ dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: jupiter
}
task scrape {
doLast {
def path = sourceSets.main.runtimeClasspath
def loader = new URLClassLoader(path.collect { f -> f.toURI().toURL() } as URL[])
def scrape = loader.loadClass('net.runelite.data.App')
scrape.main();
loader.close()
}
}