Skip to content

Commit 84b22a0

Browse files
committed
Fix publishMultiProjectShadowJarWithMavenPublishPlugin
1 parent 2998d4d commit 84b22a0

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/funcTest/kotlin/com/github/jengelman/gradle/plugins/shadow/PublishingTest.kt

+9-10
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,15 @@ class PublishingTest : BasePluginTest() {
8787
include 'a', 'b', 'c'
8888
""".trimIndent(),
8989
)
90-
projectScriptPath.writeText(
91-
"""
92-
subprojects {
93-
apply plugin: 'java'
94-
apply plugin: 'maven-publish'
95-
version = '1.0'
96-
group = 'shadow'
97-
}
98-
""".trimIndent(),
99-
)
90+
val subProjectCommon = """
91+
plugins {
92+
id 'java'
93+
}
94+
version = '1.0'
95+
group = 'shadow'
96+
""".trimIndent()
97+
path("a/build.gradle").writeText(subProjectCommon)
98+
path("b/build.gradle").writeText(subProjectCommon)
10099

101100
path("a/src/main/resources/aa.properties").writeText("aa")
102101
path("a/src/main/resources/aa2.properties").writeText("aa2")

0 commit comments

Comments
 (0)