Skip to content

Commit

Permalink
Merge pull request #106 from unbroken-dome/fix/testlibrary-api-config…
Browse files Browse the repository at this point in the history
…uration

Fix: test library implementation should extend from api
  • Loading branch information
tkrullmann authored Apr 10, 2020
2 parents 18d4e7c + 1eb040d commit e942407
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 e942407

Please sign in to comment.