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 11package com.github.jengelman.gradle.plugins.shadow
22
33import assertk.assertThat
4+ import assertk.assertions.contains
45import com.github.jengelman.gradle.plugins.shadow.util.containsEntries
56import kotlin.io.path.appendText
67import kotlin.io.path.writeText
@@ -51,4 +52,36 @@ class KmpPluginTest : BasePluginTest() {
5152 )
5253 }
5354 }
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+ }
5487}
You can’t perform that action at this time.
0 commit comments