File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com.github.jengelman.gradle.plugins.shadow
2
2
3
3
import assertk.assertThat
4
+ import assertk.assertions.contains
4
5
import com.github.jengelman.gradle.plugins.shadow.util.containsEntries
5
6
import kotlin.io.path.appendText
6
7
import kotlin.io.path.writeText
@@ -51,4 +52,36 @@ class KmpPluginTest : BasePluginTest() {
51
52
)
52
53
}
53
54
}
55
+
56
+ @Test
57
+ fun compatKmpApplicationDsl () {
58
+ writeClass(sourceSet = " jvmMain" , isJava = false , withImports = true )
59
+ projectScriptPath.appendText(
60
+ """
61
+ kotlin {
62
+ jvm {
63
+ binaries {
64
+ executable {
65
+ mainClass.set("my.MainKt")
66
+ }
67
+ }
68
+ }
69
+ sourceSets {
70
+ jvmMain {
71
+ dependencies {
72
+ implementation 'junit:junit:3.8.2'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ """ .trimIndent(),
78
+ )
79
+
80
+ val result = run (runShadowTask)
81
+
82
+ assertThat(result.output).contains(
83
+ " Hello, World! (foo) from Main" ,
84
+ " Refs: junit.framework.Test" ,
85
+ )
86
+ }
54
87
}
You can’t perform that action at this time.
0 commit comments