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 {
103103 val outputServerShadowJar: JarPath get() = jarPath(" server/build/libs/server-1.0-all.jar" )
104104
105105 fun getDefaultProjectBuildScript (
106- javaPlugin : String = "java",
106+ plugin : String = "java",
107107 withGroup : Boolean = false,
108108 withVersion : Boolean = false,
109109 ): String {
110110 val groupInfo = if (withGroup) " group = 'my'" else " "
111111 val versionInfo = if (withVersion) " version = '1.0'" else " "
112112 return """
113113 plugins {
114- id('$javaPlugin ')
114+ id('$plugin ')
115115 id('com.gradleup.shadow')
116116 }
117117 $groupInfo
Original file line number Diff line number Diff line change @@ -3,14 +3,26 @@ package com.github.jengelman.gradle.plugins.shadow
33import assertk.assertThat
44import com.github.jengelman.gradle.plugins.shadow.util.containsEntries
55import kotlin.io.path.appendText
6+ import kotlin.io.path.writeText
7+ import org.junit.jupiter.api.BeforeEach
68import org.junit.jupiter.api.Test
79
810class 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+
922 @Test
1023 fun compatKmpJvmTarget () {
1124 projectScriptPath.appendText(
1225 """
13- apply plugin: 'org.jetbrains.kotlin.multiplatform'
1426 kotlin {
1527 jvm()
1628 sourceSets {
You can’t perform that action at this time.
0 commit comments