Skip to content

Commit 9a20c04

Browse files
authored
[build] fix publishing of Gradle plugin marker (#733)
Current logic was incorrectly attaching project sources+javadoc to the Maven publication. Since Gradle plugin produces two publications -> plugin + plugin marker both of them were uploaded with attached plugin sources+javadoc jars.
1 parent 99ee0f0 commit 9a20c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import de.marcphilipp.gradle.nexus.NexusPublishExtension
32
import io.gitlab.arturbosch.detekt.detekt
43
import org.jetbrains.dokka.gradle.DokkaTask
@@ -160,7 +159,8 @@ subprojects {
160159
}
161160
}
162161
// no need to publish sources or javadocs for SNAPSHOT builds
163-
if (rootProject.extra["isReleaseVersion"] as Boolean) {
162+
// do not attach sources/javadoc to the Gradle plugin marker
163+
if (rootProject.extra["isReleaseVersion"] as Boolean && name != "graphQLPluginPluginMarkerMaven") {
164164
artifact(sourcesJar.get())
165165
artifact(javadocJar.get())
166166
}

0 commit comments

Comments
 (0)