[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:
committed by
Space Team
parent
e31ee1fa57
commit
0db4f464bb
+10
@@ -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
|
To suppress the 'Default Hierarchy Template' add
|
||||||
'$KOTLIN_MPP_APPLY_DEFAULT_HIERARCHY_TEMPLATE=false'
|
'$KOTLIN_MPP_APPLY_DEFAULT_HIERARCHY_TEMPLATE=false'
|
||||||
to your gradle.properties
|
to your gradle.properties
|
||||||
|
|||||||
+10
@@ -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
|
To suppress the 'Default Hierarchy Template' add
|
||||||
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
|
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
|
||||||
to your gradle.properties
|
to your gradle.properties
|
||||||
|
|||||||
+10
@@ -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
|
To suppress the 'Default Hierarchy Template' add
|
||||||
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
|
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
|
||||||
to your gradle.properties
|
to your gradle.properties
|
||||||
|
|||||||
+10
@@ -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
|
To suppress the 'Default Hierarchy Template' add
|
||||||
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
|
'kotlin.mpp.applyDefaultHierarchyTemplate=false'
|
||||||
to your gradle.properties
|
to your gradle.properties
|
||||||
|
|||||||
Reference in New Issue
Block a user