From 1d0e8ded9150b92c9bd4c83cebdb2b874ac8e429 Mon Sep 17 00:00:00 2001 From: Igor Demin Date: Wed, 19 Jul 2023 20:55:05 +0200 Subject: [PATCH] Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0 FAILURE: Build failed with an exception. * Where: Build file '/mnt/agent/work/eef8b9c316a53dd6/components/resources/library/build.gradle.kts' line: 66 `androidTest` was deprecated: https://kotlinlang.org/docs/whatsnew18.html#kotlin-multiplatform-a-new-android-source-set-layout * What went wrong: KotlinSourceSet with name 'androidTest' not found. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1m 24s Process exited with code 1 See https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237033?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true#4237024 ## Testing ./gradlew resources:library:test --- components/resources/library/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/resources/library/build.gradle.kts b/components/resources/library/build.gradle.kts index 3bff485c99..f40f7b7804 100644 --- a/components/resources/library/build.gradle.kts +++ b/components/resources/library/build.gradle.kts @@ -63,7 +63,7 @@ kotlin { dependsOn(jvmAndAndroidMain) dependsOn(commonButJSMain) } - val androidTest by getting { + val androidUnitTest by getting { dependencies { }