[Gradle] CommonizerIT: Add assertion on commonMain when jvm target is present
This commit is contained in:
committed by
Space
parent
5485a6d6cd
commit
c07dcb27df
+5
@@ -380,6 +380,11 @@ class CommonizerIT : BaseGradleIT() {
|
|||||||
|
|
||||||
reportSourceSetCommonizerDependencies(this, testSourceSetsDependingOnMainParameter) {
|
reportSourceSetCommonizerDependencies(this, testSourceSetsDependingOnMainParameter) {
|
||||||
it.assertTestSourceSetsDependingOnMainParameter()
|
it.assertTestSourceSetsDependingOnMainParameter()
|
||||||
|
|
||||||
|
/* this source sets are also shared with a jvm target */
|
||||||
|
getCommonizerDependencies("commonMain").assertEmpty()
|
||||||
|
getCommonizerDependencies("commonTest").assertEmpty()
|
||||||
|
|
||||||
getCommonizerDependencies("nativeMain").onlyCInterops().apply {
|
getCommonizerDependencies("nativeMain").onlyCInterops().apply {
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper".takeIf { isUnix })
|
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper".takeIf { isUnix })
|
||||||
assertTargetOnAllDependencies(
|
assertTargetOnAllDependencies(
|
||||||
|
|||||||
Reference in New Issue
Block a user