PR#124 Fix issue with merging meta-info
This commit is contained in:
parent
e6349363d7
commit
8a4a0c0f96
4 changed files with 18 additions and 1 deletions
|
|
@ -35,6 +35,9 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// since it itself contains the Test it doesn't have tests of it's own
|
||||||
|
disableTestTasks(this)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":app")
|
implementation project(":app")
|
||||||
implementation project(':test-util-android')
|
implementation project(':test-util-android')
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,5 @@ apply from: 'gradlescripts/ktlint.gradle'
|
||||||
apply from: 'gradlescripts/lint.gradle'
|
apply from: 'gradlescripts/lint.gradle'
|
||||||
apply from: 'gradlescripts/testoptions.gradle'
|
apply from: 'gradlescripts/testoptions.gradle'
|
||||||
apply from: 'gradlescripts/test.tasks.gradle'
|
apply from: 'gradlescripts/test.tasks.gradle'
|
||||||
apply from: 'gradlescripts/testdependencies.gradle'
|
apply from: 'gradlescripts/testdependencies.gradle'
|
||||||
|
apply from: 'gradlescripts/disable.test.task.gradle'
|
||||||
|
|
@ -34,6 +34,9 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// since it itself contains the Test it doesn't have tests of it's own
|
||||||
|
disableTestTasks(this)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
applyAppSharedTestDependenciesTo(this)
|
applyAppSharedTestDependenciesTo(this)
|
||||||
implementation project(":examplecase:example-navcontroller")
|
implementation project(":examplecase:example-navcontroller")
|
||||||
|
|
|
||||||
10
gradlescripts/disable.test.task.gradle
Normal file
10
gradlescripts/disable.test.task.gradle
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
project.ext {
|
||||||
|
// helper function to disable Test Tasks in modules where there are no tests and so the Tests are not required.
|
||||||
|
disableTestTasks = { module ->
|
||||||
|
module.tasks.whenTaskAdded { task ->
|
||||||
|
if(task.name.contains("Test")) {
|
||||||
|
task.enabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue