-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable Maven publishing / signing in the absence of the OSSRH L/P or…
… signing properties and move these tasks to a separate Gradle file.
- Loading branch information
1 parent
abddf5c
commit 63060fc
Showing
2 changed files
with
51 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,10 +42,6 @@ dependencies { | |
compile group: 'com.extollit', name: 'data-structures', version: '2.14' | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
task shipDoc(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
|
@@ -61,47 +57,6 @@ artifacts { | |
archives shipDoc | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'RabbitMQ Manager' | ||
packaging 'jar' | ||
description 'Convenience class for facilitating some common RabbitMQ tasks.' | ||
url 'https://github.com/weibeld/RabbitMQ-Manager' | ||
|
||
scm { | ||
connection 'scm:git:git://github.com/weibeld/RabbitMQ-Manager.git' | ||
developerConnection 'scm:git:ssh://github.com/weibeld/RabbitMQ-Manager.git' | ||
url 'http://github.com/weibeld/RabbitMQ-Manager/tree/master' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'MadMartian' | ||
name 'Jonathan Neufeld' | ||
email '[email protected]' | ||
organization 'extollIT Enterprises' | ||
organizationUrl 'http://www.extollit.com' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword") && | ||
project.hasProperty("signing.keyId") && project.hasProperty("signing.password") && project.hasProperty("signing.secretKeyRingFile")) | ||
apply from: 'publishing.gradle' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'RabbitMQ Manager' | ||
packaging 'jar' | ||
description 'Convenience class for facilitating some common RabbitMQ tasks.' | ||
url 'https://github.com/weibeld/RabbitMQ-Manager' | ||
|
||
scm { | ||
connection 'scm:git:git://github.com/weibeld/RabbitMQ-Manager.git' | ||
developerConnection 'scm:git:ssh://github.com/weibeld/RabbitMQ-Manager.git' | ||
url 'http://github.com/weibeld/RabbitMQ-Manager/tree/master' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'MadMartian' | ||
name 'Jonathan Neufeld' | ||
email '[email protected]' | ||
organization 'extollIT Enterprises' | ||
organizationUrl 'http://www.extollit.com' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |