File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
2
+
1
3
/*
2
4
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3
5
*/
@@ -60,9 +62,15 @@ task mavenTest(type: Test) {
60
62
classpath = sourceSet. runtimeClasspath
61
63
// we can't depend on the subprojects because we need to test the classfiles that are published in the end.
62
64
// also, we can't put this in the `dependencies` block because the resolution would happen before publication.
63
- classpath + = project. configurations. detachedConfiguration(
65
+ def mavenTestClasspathConfiguration = project. configurations. detachedConfiguration(
64
66
project. dependencies. create(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$version " ),
65
67
project. dependencies. create(" org.jetbrains.kotlinx:kotlinx-coroutines-android:$version " ))
68
+
69
+ mavenTestClasspathConfiguration. attributes {
70
+ attribute(KotlinPlatformType . attribute, KotlinPlatformType . jvm)
71
+ }
72
+
73
+ classpath + = mavenTestClasspathConfiguration
66
74
}
67
75
68
76
task debugAgentTest (type : Test ) {
You can’t perform that action at this time.
0 commit comments