[Gradle] CommonizerIT: Add assertion on commonMain when jvm target is present

This commit is contained in:
sebastian.sellmair
2021-08-06 12:14:19 +02:00
committed by Space
parent 5485a6d6cd
commit c07dcb27df
@@ -380,6 +380,11 @@ class CommonizerIT : BaseGradleIT() {
reportSourceSetCommonizerDependencies(this, testSourceSetsDependingOnMainParameter) {
it.assertTestSourceSetsDependingOnMainParameter()
/* this source sets are also shared with a jvm target */
getCommonizerDependencies("commonMain").assertEmpty()
getCommonizerDependencies("commonTest").assertEmpty()
getCommonizerDependencies("nativeMain").onlyCInterops().apply {
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper".takeIf { isUnix })
assertTargetOnAllDependencies(