Skip to content

Commit 32d9edf

Browse files
committed
Test compatKmpJvmTarget
1 parent c7f8fef commit 32d9edf

File tree

1 file changed

+38
-0
lines changed
  • src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.github.jengelman.gradle.plugins.shadow
2+
3+
import assertk.assertThat
4+
import com.github.jengelman.gradle.plugins.shadow.util.containsEntries
5+
import kotlin.io.path.appendText
6+
import org.junit.jupiter.api.Test
7+
8+
class KmpPluginTest : BasePluginTest() {
9+
@Test
10+
fun compatKmpJvmTarget() {
11+
projectScriptPath.appendText(
12+
"""
13+
apply plugin: 'org.jetbrains.kotlin.multiplatform'
14+
kotlin {
15+
jvm()
16+
sourceSets {
17+
commonMain {
18+
dependencies {
19+
implementation 'my:b:1.0'
20+
}
21+
}
22+
jvmMain {
23+
dependencies {
24+
implementation 'my:a:1.0'
25+
}
26+
}
27+
}
28+
}
29+
""".trimIndent(),
30+
)
31+
32+
run(shadowJarTask)
33+
34+
assertThat(outputShadowJar).useAll {
35+
containsEntries(*entriesInAB)
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)