File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments