Make run task depend on plugin scripts

This commit is contained in:
Gary Tierney
2017-06-01 22:47:50 +01:00
parent eed32efcf9
commit 42fdaee8b8
3 changed files with 41 additions and 25 deletions
+9
View File
@@ -34,4 +34,13 @@ dependencies {
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler', version: "$kotlinVersion"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
}
task run(type: JavaExec, dependsOn: [classes, pluginClasses]) {
FileCollection gameClasspath = sourceSets.main.runtimeClasspath + sourceSets.main.compileClasspath
main = 'org.apollo.Server'
classpath = gameClasspath
jvmArgs = ['-Xmx1750M']
workingDir = "$rootDir"
}