@@ -110,19 +110,10 @@ compileKotlinMetadata {
110
110
// :KLUDGE: Idea.active: This is needed to workaround resolve problems after importing this project to IDEA
111
111
def configureNativeSourceSetPreset (name , preset ) {
112
112
def hostMainCompilation = project. kotlin. targetFromPreset(preset). compilations. main
113
- // Kotlin 1.3.x: Look for platform libraries in "compile" configuration
114
- def compileConfiguration = configurations[hostMainCompilation. compileDependencyConfigurationName]
115
- // Kotlin 1.4.x: Look for platform libraries in "implementation" for default source set
113
+ // Look for platform libraries in "implementation" for default source set
116
114
def implementationConfiguration = configurations[hostMainCompilation. defaultSourceSet. implementationMetadataConfigurationName]
117
- // Now find the libraries:
118
- // Kotlin 1.3.x: Find all platform libs
119
- // Kotlin 1.4.x: Finds platform libs & stdlib, but platform declarations are still not resolved due to IDE bugs
115
+ // Now find the libraries: Finds platform libs & stdlib, but platform declarations are still not resolved due to IDE bugs
120
116
def hostNativePlatformLibs = files(
121
- provider {
122
- compileConfiguration. findAll {
123
- it. path. endsWith(" .klib" ) || it. absolutePath. contains(" klib${ File.separator} platform" )
124
- }
125
- },
126
117
provider {
127
118
implementationConfiguration. findAll {
128
119
it. path. endsWith(" .klib" ) || it. absolutePath. contains(" klib${ File.separator} platform" ) || it. absolutePath. contains(" stdlib" )
@@ -158,17 +149,10 @@ kotlin.sourceSets {
158
149
}
159
150
160
151
jvmTest. dependencies {
161
- // This is a workaround for https://youtrack.jetbrains.com/issue/KT-39037
162
- def excludingCurrentProject = { dependency ->
163
- def result = project. dependencies. create(dependency)
164
- result. exclude(module : project. name)
165
- return result
166
- }
167
-
168
- api(excludingCurrentProject(" org.jetbrains.kotlinx:lincheck:$lincheck_version " ))
152
+ api " org.jetbrains.kotlinx:lincheck:$lincheck_version "
169
153
api " org.jetbrains.kotlinx:kotlinx-knit-test:$knit_version "
170
154
api " com.esotericsoftware:kryo:4.0.0"
171
- implementation(excludingCurrentProject( project(" :android-unit-tests" )) )
155
+ implementation project(" :android-unit-tests" )
172
156
}
173
157
}
174
158
0 commit comments