Skip to content

Commit

Permalink
Fix: test library's implementation configuration should extend from i…
Browse files Browse the repository at this point in the history
…ts api configuration

fixes #105
  • Loading branch information
tkrullmann committed Apr 10, 2020
1 parent 18d4e7c commit 1eb040d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class TestSetsPlugin


private fun Project.createConfigurationsForTestSet(testSet: TestSetBase) {
project.configurations.run {
with(configurations) {

registerOrConfigure(testSet.runtimeElementsConfigurationName) { conf ->
conf.isVisible = false
Expand All @@ -112,6 +112,10 @@ class TestSetsPlugin
conf.extendsFrom(this[testSet.apiConfigurationName])
}

// for a test library, implementation should extend from api
named(testSet.implementationConfigurationName) { conf ->
conf.extendsFrom(configurations[testSet.apiConfigurationName])
}
}
}
}
Expand Down

0 comments on commit 1eb040d

Please sign in to comment.