Advanced-Portals/build.gradle

35 lines
810 B
Groovy
Raw Normal View History

2018-06-03 09:13:21 +02:00
apply plugin: 'java'
apply plugin: 'maven'
2018-06-03 12:17:28 +02:00
apply plugin: 'idea'
apply plugin: 'eclipse'
2018-06-03 09:13:21 +02:00
group = 'com.sekwah.advancedportals'
version = '1.0.0'
description = ""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version:'2.8.2'
compile group: 'com.google.inject', name: 'guice', version:'4.0'
}
2018-06-04 05:47:35 +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
task runJar() << {
javaexec {
main="-jar"; args "${System.env.SPIGOT_LOC}\\${System.env.SPIGOT_JAR}.jar";
workingDir = "${System.env.SPIGOT_LOC}";
}
}