[gradle, kmp] Minor: add more info to deprecation message

Buildscripts that used `ios`-shortcut certainly used
`val iosMain by getting` as well, which will lead to Gradle exception
after migration. Mention in the diagnostic message that one should
replace `by getting` with static accessors

^KT-60734
This commit is contained in:
Dmitry Savvinov
2023-09-20 10:55:45 +02:00
committed by Space Team
parent e31ee1fa57
commit 0db4f464bb
4 changed files with 40 additions and 0 deletions
@@ -503,6 +503,16 @@ object KotlinToolingDiagnostics {
/* ... */
}
After that, replace `by getting` with static accessors:
sourceSets {
commonMain { ... }
${trace.shortcut}Main {
dependencies { ... }
}
}
To suppress the 'Default Hierarchy Template' add
'$KOTLIN_MPP_APPLY_DEFAULT_HIERARCHY_TEMPLATE=false'
to your gradle.properties
@@ -14,6 +14,16 @@ Please declare the required targets explicitly:
/* ... */
}
After that, replace `by getting` with a static accessor:
sourceSets {
commonMain { ... }
iosMain {
dependencies { ... }
}
}
To suppress the 'Default Hierarchy Template' add
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
to your gradle.properties
@@ -14,6 +14,16 @@ Please declare the required targets explicitly:
/* ... */
}
After that, replace `by getting` with a static accessor:
sourceSets {
commonMain { ... }
tvosMain {
dependencies { ... }
}
}
To suppress the 'Default Hierarchy Template' add
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
to your gradle.properties
@@ -14,6 +14,16 @@ Please declare the required targets explicitly:
/* ... */
}
After that, replace `by getting` with a static accessor:
sourceSets {
commonMain { ... }
watchosMain {
dependencies { ... }
}
}
To suppress the 'Default Hierarchy Template' add
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
to your gradle.properties