mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
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:
+1
-1
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user