wikiscraper: Don't run by default (#1467)
* wikiscraper: Don't run by default * client: scrape npc stats
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user