Skip to content

Commit

Permalink
Move stub.kt to main game module
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed May 31, 2017
1 parent 258fc6c commit 658c33e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
8 changes: 8 additions & 0 deletions game/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ ext.pluginsDir = "$projectDir/src/plugins"
apply plugin: 'kotlin'
apply from: 'plugins.gradle'

sourceSets {
main {
kotlin {
exclude 'stub.kt'
}
}
}

dependencies {
compile project(':cache')
compile project(':net')
Expand Down
14 changes: 0 additions & 14 deletions game/plugins.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,6 @@ buildscript {
}
}

sourceSets {
pluginStub {
kotlin {
srcDir "$pluginsDir/stub"
exclude 'stub.kt'
}
}
}

dependencies {
pluginStubCompile(project(":game"))
}

task pluginTests {
group = "plugin-verification"

Expand Down Expand Up @@ -73,7 +60,6 @@ def configurePluginDependencies(SourceSet mainSources, SourceSet testSources,

dependencies.add(mainConfiguration, configurations.compile)
dependencies.add(mainConfiguration, sourceSets.main.output)
dependencies.add(mainConfiguration, sourceSets.pluginStub.output)

dependencies.add(testConfiguration, mainSources.output)
dependencies.add(testConfiguration, configurations.testCompile)
Expand Down

0 comments on commit 658c33e

Please sign in to comment.