Skip to content

Commit 116787f

Browse files
committed
Fix publishMultiProjectShadowJar
1 parent 14ac2ce commit 116787f

File tree

1 file changed

+10
-10
lines changed
  • src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,16 @@ class PublishingTest : BasePluginTest() {
284284
include 'a', 'b', 'c'
285285
""".trimIndent(),
286286
)
287-
projectScriptPath.writeText(
288-
"""
289-
subprojects {
290-
apply plugin: 'java'
291-
apply plugin: 'maven-publish'
292-
version = '1.0'
293-
group = 'my'
294-
}
295-
""".trimIndent(),
296-
)
287+
projectScriptPath.writeText("")
288+
val subProjectCommon = """
289+
plugins {
290+
id 'java'
291+
}
292+
version = '1.0'
293+
group = 'my'
294+
""".trimIndent()
295+
path("a/build.gradle").writeText(subProjectCommon)
296+
path("b/build.gradle").writeText(subProjectCommon)
297297

298298
path("a/src/main/resources/aa.properties").writeText("aa")
299299
path("a/src/main/resources/aa2.properties").writeText("aa2")

0 commit comments

Comments
 (0)