Updated build

This commit is contained in:
Sekwah 2018-06-04 11:54:52 +01:00 committed by Sekwah
parent 9eeba2495e
commit fb4d4b1da5
3 changed files with 11 additions and 9 deletions

View File

@ -422,11 +422,17 @@ if (!isCanary) {
publish.finalizedBy 'curseforge'
}
jar {
from configurations.includeLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
// Set SPIGOT_LOC to the location of your server and SPIGOT_JAR as the name of the jar file in the server you want to run
task runJar() << {
javaexec {
main="-jar"; args "${System.env.SPIGOT_LOC}\\${System.env.SPIGOT_JAR}.jar";
workingDir = "${System.env.SPIGOT_LOC}";
main "-jar"
args "${System.env.SPIGOT_LOC}\\${System.env.SPIGOT_JAR}.jar"
jvmArgs "-DIReallyKnowWhatIAmDoingISwear=true"
workingDir "${System.env.SPIGOT_LOC}"
}
}
}

View File

@ -1,18 +1,15 @@
package com.sekwah.advancedportals.core;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import com.sekwah.advancedportals.core.api.services.PortalServices;
import com.sekwah.advancedportals.core.api.services.PortalTempDataServices;
import com.sekwah.advancedportals.core.entities.PlayerLocation;
import com.sekwah.advancedportals.core.entities.PortalLocation;
import com.sekwah.advancedportals.core.repository.PortalRepository;
import com.sekwah.advancedportals.core.repository.PortalTempDataRepository;
import com.sekwah.advancedportals.core.util.Lang;
import com.sekwah.advancedportals.coreconnector.container.PlayerContainer;
import com.sekwah.advancedportals.coreconnector.container.WorldContainer;
import javax.inject.Inject;
public class CoreListeners {
private PortalTempDataServices portalTempDataServices;

View File

@ -1,10 +1,9 @@
package com.sekwah.advancedportals.core.repository;
import com.google.inject.Singleton;
import com.sekwah.advancedportals.core.config.Config;
import com.sekwah.advancedportals.core.data.DataStorage;
import javax.inject.Singleton;
@Singleton
public class ConfigRepositoryImpl implements ConfigRepository {