File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,15 @@ abstract class BasePluginTest {
103
103
val outputServerShadowJar: JarPath get() = jarPath(" server/build/libs/server-1.0-all.jar" )
104
104
105
105
fun getDefaultProjectBuildScript (
106
- javaPlugin : String = "java",
106
+ plugin : String = "java",
107
107
withGroup : Boolean = false,
108
108
withVersion : Boolean = false,
109
109
): String {
110
110
val groupInfo = if (withGroup) " group = 'my'" else " "
111
111
val versionInfo = if (withVersion) " version = '1.0'" else " "
112
112
return """
113
113
plugins {
114
- id('$javaPlugin ')
114
+ id('$plugin ')
115
115
id('com.gradleup.shadow')
116
116
}
117
117
$groupInfo
Original file line number Diff line number Diff line change @@ -3,14 +3,26 @@ package com.github.jengelman.gradle.plugins.shadow
3
3
import assertk.assertThat
4
4
import com.github.jengelman.gradle.plugins.shadow.util.containsEntries
5
5
import kotlin.io.path.appendText
6
+ import kotlin.io.path.writeText
7
+ import org.junit.jupiter.api.BeforeEach
6
8
import org.junit.jupiter.api.Test
7
9
8
10
class KmpPluginTest : BasePluginTest () {
11
+ @BeforeEach
12
+ override fun setup () {
13
+ super .setup()
14
+ val projectBuildScript = getDefaultProjectBuildScript(
15
+ plugin = " org.jetbrains.kotlin.multiplatform" ,
16
+ withGroup = true ,
17
+ withVersion = true ,
18
+ )
19
+ projectScriptPath.writeText(projectBuildScript)
20
+ }
21
+
9
22
@Test
10
23
fun compatKmpJvmTarget () {
11
24
projectScriptPath.appendText(
12
25
"""
13
- apply plugin: 'org.jetbrains.kotlin.multiplatform'
14
26
kotlin {
15
27
jvm()
16
28
sourceSets {
You can’t perform that action at this time.
0 commit comments