Skip to content

Commit

Permalink
added signing task
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Zouhar committed Apr 7, 2019
1 parent eb51cc9 commit ecb9fa9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ buildscript {
}

subprojects {
apply plugin: 'signing'

version = '0.0.3'
group = 'io.marauder.supercharger'

Expand Down Expand Up @@ -56,8 +58,16 @@ subprojects {
}

plugins.withType(MavenPlugin) {
// sign all artifacts
signing {
required { !version.endsWith('SNAPSHOT') && gradle.taskGraph.hasTask(':uploadArchives') }
sign configurations.archives
}

uploadArchives.repositories.mavenDeployer {
// sign artifacts before upload
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

// upload to geocode artifactory
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: rootProject.hasProperty('ossrhUsername') ? "$ossrhUsername" : "$System.env.ossrhUsername",
Expand All @@ -75,7 +85,7 @@ subprojects {
pom.project {
name 'supercharger'
packaging 'jar'
description 'A Collection of Vector Tile Tools including the supercharged Encoder!'
description 'Supercharger is a Collection of Vector Tile Tools including the supercharged encoder!'
url 'http://marauder.io/supercharger'

scm {
Expand Down

0 comments on commit ecb9fa9

Please sign in to comment.