mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Clean up plugin script compilation
This commit is contained in:
+2
-4
@@ -36,11 +36,9 @@ dependencies {
|
|||||||
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
|
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
task run(type: JavaExec, dependsOn: [classes, pluginClasses]) {
|
task run(type: JavaExec, dependsOn: classes) {
|
||||||
FileCollection gameClasspath = sourceSets.main.runtimeClasspath + sourceSets.main.compileClasspath
|
|
||||||
|
|
||||||
main = 'org.apollo.Server'
|
main = 'org.apollo.Server'
|
||||||
classpath = gameClasspath
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
jvmArgs = ['-Xmx1750M']
|
jvmArgs = ['-Xmx1750M']
|
||||||
workingDir = "$rootDir"
|
workingDir = "$rootDir"
|
||||||
}
|
}
|
||||||
+4
-5
@@ -23,10 +23,6 @@ task pluginTests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task pluginClasses {
|
|
||||||
group = "plugin-build"
|
|
||||||
}
|
|
||||||
|
|
||||||
check.dependsOn pluginTests
|
check.dependsOn pluginTests
|
||||||
|
|
||||||
class PluginBuildData {
|
class PluginBuildData {
|
||||||
@@ -107,7 +103,10 @@ def configurePluginTasks(String name, SourceSet mainSources, SourceSet testSourc
|
|||||||
args = [outputDir] + scriptFiles.collect { it.absoluteFile.toString() }
|
args = [outputDir] + scriptFiles.collect { it.absoluteFile.toString() }
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginClasses.dependsOn compileScriptsTask
|
tasks[mainSources.classesTaskName].outputs.upToDateWhen { false }
|
||||||
|
tasks[mainSources.classesTaskName].doLast {
|
||||||
|
compileScriptsTask.execute()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user