[Gradle] Elevate CommonMainWithDependsOnDiagnostic to error

^KT-59311 Verification Pending
This commit is contained in:
Anton Lakotka
2023-07-10 13:37:20 +02:00
committed by Space Team
parent fcba0ad75e
commit cd5e4611eb
3 changed files with 4 additions and 4 deletions
@@ -6,7 +6,7 @@ kotlin.mpp.enableCompatibilityMetadataVariant, kotlin.mpp.hierarchicalStructureS
Read the details here: https://kotlinlang.org/docs/multiplatform-compatibility-guide.html#deprecate-hmpp-properties Read the details here: https://kotlinlang.org/docs/multiplatform-compatibility-guide.html#deprecate-hmpp-properties
#diagnostic-end #diagnostic-end
w: [CommonMainWithDependsOnDiagnostic | WARNING] commonMain can't declare dependsOn on other source sets e: [CommonMainWithDependsOnDiagnostic | ERROR] commonMain can't declare dependsOn on other source sets
#diagnostic-end #diagnostic-end
w: [KotlinDefaultHierarchyFallbackDependsOnUsageDetected | WARNING] The Default Kotlin Hierarchy was not applied to 'project ':subprojectA'': w: [KotlinDefaultHierarchyFallbackDependsOnUsageDetected | WARNING] The Default Kotlin Hierarchy was not applied to 'project ':subprojectA'':
@@ -20,7 +20,7 @@ to your gradle.properties
> Configure project :subprojectB > Configure project :subprojectB
w: [CommonMainWithDependsOnDiagnostic | WARNING] commonMain can't declare dependsOn on other source sets e: [CommonMainWithDependsOnDiagnostic | ERROR] commonMain can't declare dependsOn on other source sets
#diagnostic-end #diagnostic-end
w: [KotlinDefaultHierarchyFallbackDependsOnUsageDetected | WARNING] The Default Kotlin Hierarchy was not applied to 'project ':subprojectB'': w: [KotlinDefaultHierarchyFallbackDependsOnUsageDetected | WARNING] The Default Kotlin Hierarchy was not applied to 'project ':subprojectB'':
@@ -35,7 +35,7 @@ object KotlinToolingDiagnostics {
) )
} }
object CommonMainWithDependsOnDiagnostic : ToolingDiagnosticFactory(WARNING) { object CommonMainWithDependsOnDiagnostic : ToolingDiagnosticFactory(ERROR) {
operator fun invoke() = build("commonMain can't declare dependsOn on other source sets") operator fun invoke() = build("commonMain can't declare dependsOn on other source sets")
} }
@@ -1 +1 @@
[CommonMainWithDependsOnDiagnostic | WARNING] commonMain can't declare dependsOn on other source sets [CommonMainWithDependsOnDiagnostic | ERROR] commonMain can't declare dependsOn on other source sets