[Gradle] Fix mpp+kapt tests on Windows
Previously expected paths were defined with forward slash, however, on Windows the paths are transformed to use backslash.
This commit is contained in:
committed by
Space Team
parent
2801db0e59
commit
33df94d96e
+3
-2
@@ -966,10 +966,11 @@ open class Kapt3IT : Kapt3BaseIT() {
|
|||||||
":dac:compileKotlinJvm"
|
":dac:compileKotlinJvm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val sourcesDir = subProject("dac").kotlinSourcesDir("commonMain")
|
||||||
// KT-61622: checking if kapt tasks are getting common sources in default configuration
|
// KT-61622: checking if kapt tasks are getting common sources in default configuration
|
||||||
val commonSources = arrayOf(
|
val commonSources = arrayOf(
|
||||||
"src/commonMain/kotlin/DocumentationService.kt",
|
sourcesDir.resolve("DocumentationService.kt").toAbsolutePath().toString(),
|
||||||
"src/commonMain/kotlin/Item.kt",
|
sourcesDir.resolve("Item.kt").toAbsolutePath().toString(),
|
||||||
)
|
)
|
||||||
assertCompilerArguments(":dac:kaptGenerateStubsKotlinJvm", *commonSources)
|
assertCompilerArguments(":dac:kaptGenerateStubsKotlinJvm", *commonSources)
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-3
@@ -217,7 +217,7 @@ open class Kapt3AndroidExternalIT : Kapt3BaseIT() {
|
|||||||
fun testMppAndroidKapt(
|
fun testMppAndroidKapt(
|
||||||
gradleVersion: GradleVersion,
|
gradleVersion: GradleVersion,
|
||||||
agpVersion: String,
|
agpVersion: String,
|
||||||
jdkVersion: JdkVersions.ProvidedJdk
|
jdkVersion: JdkVersions.ProvidedJdk,
|
||||||
) {
|
) {
|
||||||
project(
|
project(
|
||||||
"mpp-android-kapt".withPrefix,
|
"mpp-android-kapt".withPrefix,
|
||||||
@@ -232,10 +232,11 @@ open class Kapt3AndroidExternalIT : Kapt3BaseIT() {
|
|||||||
":shared:compileDebugKotlinAndroid",
|
":shared:compileDebugKotlinAndroid",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val sourcesDir = subProject("shared").kotlinSourcesDir("commonMain")
|
||||||
assertCompilerArguments(
|
assertCompilerArguments(
|
||||||
":shared:kaptGenerateStubsDebugKotlinAndroid",
|
":shared:kaptGenerateStubsDebugKotlinAndroid",
|
||||||
"src/commonMain/kotlin/hilt/error/sampleapp/Annotations.kt",
|
sourcesDir.resolve("hilt/error/sampleapp/Annotations.kt").toAbsolutePath().toString(),
|
||||||
"src/commonMain/kotlin/hilt/error/sampleapp/CommonMainViewModel.kt",
|
sourcesDir.resolve("hilt/error/sampleapp/CommonMainViewModel.kt").toAbsolutePath().toString(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user