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

Commit

Permalink
updating signing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrichard committed Oct 5, 2017
1 parent b884526 commit 2a18e2a
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,43 +129,46 @@ task customSigning {
return false
}
})
println "signing jar files"
signing.sign(jarFiles)
}
}

task createPom << {
pom{
project {
name rootProject.name
description rootProject.description
url 'https://github.com/blackducksoftware/hub-detect'
packaging 'jar'
scm {
connection 'scm:git:git://github.com/blackducksoftware/hub-detect.git'
developerConnection 'scm:git:git@github.com:blackducksoftware/hub-detect.git'
url 'https://www.github.com/blackducksoftware/hub-detect'
}
licenses {
license {
name 'Apache License 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0'
task createPom {
doLast {
pom{
project {
name rootProject.name
description rootProject.description
url 'https://github.com/blackducksoftware/hub-detect'
packaging 'jar'
scm {
connection 'scm:git:git://github.com/blackducksoftware/hub-detect.git'
developerConnection 'scm:git:git@github.com:blackducksoftware/hub-detect.git'
url 'https://www.github.com/blackducksoftware/hub-detect'
}
}
developers {
developer {
id 'blackduckoss'
name 'Black Duck OSS'
email 'bdsoss@blackducksoftware.com'
organization 'Black Duck Software, Inc.'
organizationUrl 'http://www.blackducksoftware.com'
roles { role 'developer' }
timezone 'America/New_York'
licenses {
license {
name 'Apache License 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id 'blackduckoss'
name 'Black Duck OSS'
email 'bdsoss@blackducksoftware.com'
organization 'Black Duck Software, Inc.'
organizationUrl 'http://www.blackducksoftware.com'
roles { role 'developer' }
timezone 'America/New_York'
}
}
}
}
}.writeTo("${buildDir}/poms/pom.xml")
File pomFile = file("${buildDir}/poms/pom.xml")
signing.sign(pomFile)
}.writeTo("${buildDir}/poms/pom.xml")
File pomFile = file("${buildDir}/poms/pom.xml")
signing.sign(pomFile)
}
}

//uploadArchives {
Expand Down

0 comments on commit 2a18e2a

Please sign in to comment.