Remove wrong dependency and include bStats to SpongePlugin

This commit is contained in:
Blue (Lukas Rieger) 2019-11-12 20:46:00 +01:00
parent 8c90b3a38e
commit 731c31e601
4 changed files with 11 additions and 2 deletions

View File

@ -7,7 +7,6 @@ dependencies {
compile 'ninja.leaping.configurate:configurate-hocon:3.3'
compile 'ninja.leaping.configurate:configurate-gson:3.3'
compile 'com.github.Querz:NBT:4.0'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
}
task zipWebroot(type: Zip) {

View File

@ -1,4 +1,5 @@
dependencies {
shadow "org.spongepowered:spongeapi:7.2.0-SNAPSHOT"
compile group: 'org.bstats', name: 'bstats-sponge-lite', version: '1.5'
compile project(':BlueMapCore')
}
}

View File

@ -34,6 +34,7 @@
import javax.inject.Inject;
import org.bstats.sponge.MetricsLite2;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.config.ConfigDir;
import org.spongepowered.api.event.Listener;
@ -81,6 +82,10 @@ public class SpongePlugin {
@ConfigDir(sharedRoot = false)
private Path configurationDir;
@SuppressWarnings("unused")
@Inject
private MetricsLite2 metrics;
private ConfigurationFile config;
private ResourcePack resourcePack;

View File

@ -13,6 +13,10 @@ allprojects {
name 'sponge'
url 'http://repo.spongepowered.org/maven'
}
maven {
name 'CodeMC'
url 'https://repo.codemc.org/repository/maven-public'
}
}
compileJava.options.compilerArgs.add '-parameters'