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