Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Issue #5: Make sure that the POM is only signed once.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuschko committed Oct 27, 2013
1 parent 8d4b54b commit a47b15c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package org.gradle.api.plugins.nexus

import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.maven.MavenDeployment
import org.gradle.api.execution.TaskExecutionGraph
import org.gradle.api.plugins.GroovyPlugin
import org.gradle.api.plugins.JavaPlugin
Expand Down Expand Up @@ -109,10 +110,10 @@ class NexusPlugin implements Plugin<Project> {

sign project.configurations.archives

project.tasks.withType(Upload) {
project.tasks.getByName(UPLOAD_ARCHIVES_TASK_NAME).repositories.mavenDeployer() {
beforeDeployment {
signPom(it)
project.tasks.withType(Upload) { task ->
task.repositories.mavenDeployer() {
beforeDeployment { MavenDeployment deployment ->
signPom(deployment)
}
}
}
Expand Down

0 comments on commit a47b15c

Please sign in to comment.