Skip to content

Commit fc5ed3b

Browse files
author
Ramanathan Ramu
committed
Fix publish dependency error
1 parent 02b85bc commit fc5ed3b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

transportable-udfs-plugin/build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ publishing {
8181
// creates its publications in an afterEvaluate callback
8282
afterEvaluate {
8383
publications {
84-
withType(MavenPublication) {
84+
named("pluginMaven", MavenPublication) {
8585
artifact sourcesJar
8686
artifact javadocJar
8787

@@ -127,13 +127,3 @@ publishing {
127127
repositories { maven { url = "$rootProject.buildDir/repo" } }
128128
}
129129

130-
import org.gradle.api.publish.maven.tasks.PublishToMavenRepository
131-
132-
if (providers.environmentVariable("PGP_KEY").isPresent()) {
133-
tasks.withType(PublishToMavenRepository).configureEach { pubTask ->
134-
if (pubTask.name.startsWith("publishPluginMavenPublicationTo")) {
135-
dependsOn(tasks.named("signSimplePluginPluginMarkerMavenPublication"))
136-
}
137-
}
138-
}
139-

0 commit comments

Comments
 (0)