Skip to content

Commit 00147e9

Browse files
committed
Exclude external test-runner classes from clashing with the same module
1 parent f27c540 commit 00147e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

instrumentation-runner/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ android {
6060
}
6161
}
6262

63+
configurations.all {
64+
// The Instrumentation Test Runner uses the plugin,
65+
// which in turn provides the Instrumentation Test Runner again -
66+
// that's kind of deep.
67+
// To avoid conflicts, prefer using the local classes
68+
// and exclude the dependency from being pulled in externally.
69+
exclude module: INSTRUMENTATION_RUNNER_ARTIFACT_ID
70+
}
71+
6372
dependencies {
6473
implementation "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
6574
implementation "org.jetbrains.kotlin:kotlin-reflect:$KOTLIN_VERSION"

0 commit comments

Comments
 (0)