Add support for extra publication metadata.

Review Request #2184 - Created May 8, 2015 and submitted

Information
John Sirois
pants
jsirois/issues/1411
1411, 1511
14dfd3b...
Reviewers
pants-reviews
benjyw, dturner-tw, stuhood, zundel
In particular this change adds support for OSSRH required metadata for
publishing to maven central.  An object is exposed for pantsbuild/pants
use that encapsulates the boilerplate common to all jars it will publish
to maven central and this object is used to prepare all publishable java
targets for maven central publishing.

 pants-plugins/src/python/internal_backend/repositories/BUILD                                                                              |   2 +
 pants-plugins/src/python/internal_backend/repositories/register.py                                                                        |  27 +++++++++
 src/java/org/pantsbuild/args4j/BUILD                                                                                                      |   3 +
 src/java/org/pantsbuild/junit/annotations/BUILD                                                                                           |   3 +
 src/java/org/pantsbuild/tools/jar/BUILD                                                                                                   |   3 +
 src/java/org/pantsbuild/tools/junit/BUILD                                                                                                 |   4 ++
 src/java/org/pantsbuild/tools/junit/withretry/BUILD                                                                                       |   3 +
 src/python/pants/backend/jvm/BUILD                                                                                                        |  35 +++++++----
 src/python/pants/backend/jvm/artifact.py                                                                                                  |  35 +++++++----
 src/python/pants/backend/jvm/ossrh_publication_metadata.py                                                                                | 160 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/python/pants/backend/jvm/register.py                                                                                                  |   7 +++
 src/python/pants/backend/jvm/tasks/BUILD                                                                                                  |   1 +
 src/python/pants/backend/jvm/tasks/jar_publish.py                                                                                         |  76 +++++++++++++++---------
 src/python/pants/backend/jvm/tasks/templates/jar_publish/pom.mustache                                                                     | 157 ++++++++++++++++++++++++++++++++++---------------
 src/scala/org/pantsbuild/zinc/BUILD                                                                                                       |   2 +-
 testprojects/src/java/org/pantsbuild/testproject/publish/hello/greet/BUILD                                                                |  53 +++++++++++++++--
 tests/python/pants_test/tasks/jar_publish_resources/org.pantsbuild.testproject.publish.hello/welcome/welcome-0.0.1-SNAPSHOT.pom           |  15 ++---
 tests/python/pants_test/tasks/jar_publish_resources/org.pantsbuild.testproject.publish/hello-greet/hello-greet-0.0.1-SNAPSHOT.pom         |  45 ++++++++++++--
 tests/python/pants_test/tasks/jar_publish_resources/org.pantsbuild.testproject.publish/jvm-example-lib/jvm-example-lib-0.0.1-SNAPSHOT.pom |  15 ++---
 19 files changed, 512 insertions(+), 134 deletions(-)
Local publishes and verification of most permutations of
OSSRHPublicationMetadata in the existing
JarPublishIntegrationTest#test_scala_publish test via new golden data.

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/61845618
Benjy Weinberger
Stu Hood
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

David Turner
Ship It!
Loading...