Add a 'plugins' source set to the game module

Creates a new sourceset for server plugins to support IDE integration
with plugin code.  Additionally moves plugins to game/data/plugins and
contains some gradle related fixes (remove java plugin from root project
and fix exec task dependency).
This commit is contained in:
Gary Tierney
2017-05-27 18:33:17 +01:00
parent 3403c0a2d1
commit 79f79cd15c
8 changed files with 131 additions and 15 deletions
+9 -3
View File
@@ -1,10 +1,15 @@
allprojects {
group = 'apollo'
version = '0.0.1'
apply plugin: 'java'
}
ext {
kotlinVersion = '1.1.2-4'
}
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@ -41,8 +46,9 @@ subprojects {
}
}
task(run, dependsOn: classes, type: JavaExec) {
def gameSubproject = project(':game')
def gameSubproject = project(':game')
task(run, dependsOn: gameSubproject.tasks['classes'], type: JavaExec) {
def gameClasspath = gameSubproject.sourceSets.main.runtimeClasspath
main = 'org.apollo.Server'