2018-07-23 02:43:29 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
group = 'com.sekwah.advancedportals'
|
2018-08-26 23:07:24 +02:00
|
|
|
version = '0.0.45-snapshot'
|
2018-07-23 02:43:29 +02:00
|
|
|
|
|
|
|
description = ""
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
// configuration that holds jars to copy into lib
|
|
|
|
includeLibs
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url "http://repo.maven.apache.org/maven2" }
|
|
|
|
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
|
|
|
|
}
|
|
|
|
|
|
|
|
// includeLibs just says to include the library in the final jar
|
|
|
|
dependencies {
|
2018-07-23 04:02:42 +02:00
|
|
|
compile "org.bukkit:bukkit:1.13-R0.1-SNAPSHOT"
|
2018-07-23 02:43:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
// DIReallyKnowWhatIAmDoingISwear is to remove the stupid pause spigot has at the start
|
|
|
|
task runJar() {
|
|
|
|
doLast {
|
|
|
|
javaexec {
|
|
|
|
main "-jar"
|
|
|
|
args "${System.env.MC_SERVER_LOC}\\${System.env.MC_SERVER_JAR}.jar"
|
|
|
|
jvmArgs "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -DIReallyKnowWhatIAmDoingISwear=true"
|
|
|
|
workingDir "${System.env.MC_SERVER_LOC}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|