mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +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:
+12
-11
@@ -1,8 +1,6 @@
|
||||
description = 'Apollo Game'
|
||||
|
||||
buildscript {
|
||||
ext.kotlinVersion = '1.1.2-4'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
@@ -14,19 +12,22 @@ buildscript {
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
sourceSets {
|
||||
main.kotlin.srcDirs += 'src/kotlin'
|
||||
|
||||
plugins {
|
||||
kotlin.srcDirs += 'data/plugins'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':cache')
|
||||
compile project(':net')
|
||||
compile project(':util')
|
||||
|
||||
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler', version: $kotlinVersion
|
||||
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8', version: $kotlinVersion
|
||||
}
|
||||
pluginsCompile(configurations.compile)
|
||||
pluginsCompile(sourceSets.main.output)
|
||||
|
||||
sourceSets {
|
||||
main.kotlin.srcDirs += 'src/kotlin'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler', version: "$kotlinVersion"
|
||||
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8', version: "$kotlinVersion"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user