Compile plugins at build-time instead of runtime

Adds gradle tasks to build all plugin scripts under data/plugins with
the KotlinPluginCompiler implementation previously used for runtime code
generation.  In addition to .plugin.kts files, scripts can also declare
API code in .kt files which will also be included on the classpath and
made available to other plugins.
This commit is contained in:
Gary Tierney
2017-05-28 01:38:58 +01:00
parent 79f79cd15c
commit 7ffef28117
7 changed files with 230 additions and 146 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ subprojects {
def gameSubproject = project(':game')
task(run, dependsOn: gameSubproject.tasks['classes'], type: JavaExec) {
task(run, dependsOn: gameSubproject.tasks['assemble'], type: JavaExec) {
def gameClasspath = gameSubproject.sourceSets.main.runtimeClasspath
main = 'org.apollo.Server'