mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-07 11:30:41 +01:00
Updateged build
This commit is contained in:
parent
4c78dccb0c
commit
4bccc8d3d6
21
build.gradle
21
build.gradle
@ -15,20 +15,35 @@ tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
|
||||
repositories {
|
||||
maven { url "http://repo.maven.apache.org/maven2" }
|
||||
}
|
||||
|
||||
configurations {
|
||||
// configuration that holds jars to copy into lib
|
||||
includeLibs
|
||||
}
|
||||
|
||||
// includeLibs just says to include the library in the final jar
|
||||
dependencies {
|
||||
includeLibs group: 'com.google.code.gson', name: 'gson', version:'2.8.2'
|
||||
compile group: 'com.google.code.gson', name: 'gson', version:'2.8.2'
|
||||
includeLibs group: 'com.google.inject', name: 'guice', version:'4.0'
|
||||
compile group: 'com.google.inject', name: 'guice', version:'4.0'
|
||||
}
|
||||
|
||||
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
|
||||
// DIReallyKnowWhatIAmDoingISwear is to remove the stupid pause spigot has at the start
|
||||
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.MC_SERVER_LOC}\\${System.env.MC_SERVER_JAR}.jar"
|
||||
jvmArgs "-DIReallyKnowWhatIAmDoingISwear=true"
|
||||
workingDir "${System.env.MC_SERVER_LOC}"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user