[Gradle][MPP] Ensure presence of .defaultSourceSet when creating kotlinCompilations
This will finally make calls to KotlinCompilation.defaultSourceSet or sourceSets.getByName(compilation.defaultSourceSetName) safe. This will also enable removing the `kotlinSourceSetsIncludingDefault` pitfall ^KT-52726 Verification Pending
This commit is contained in:
committed by
Space
parent
5f085f0448
commit
f4eba62f8c
+2
-1
@@ -33,7 +33,8 @@ interface KotlinCompilation<out T : KotlinCommonOptions> : Named, HasAttributes,
|
||||
|
||||
val allKotlinSourceSets: Set<KotlinSourceSet>
|
||||
|
||||
val defaultSourceSetName: String
|
||||
@Deprecated("Use defaultSourceSet.name instead", ReplaceWith("defaultSourceSet.name"))
|
||||
val defaultSourceSetName: String get() = defaultSourceSet.name
|
||||
|
||||
val defaultSourceSet: KotlinSourceSet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user