npathai / hamcrest-optional

Matchers for JDK 8 Optional
MIT License
42 stars 3 forks source link

Prepare release. #23

Closed stefanbirkner closed 8 years ago

stefanbirkner commented 8 years ago

Describe the release process and use Stefan Birkner's parent POM. This POM sets versions for all plugins and configures plugins that are used for releasing the library.

I used my own parent POM in order to avoid copying all the plugin configuration. I can create a different pull request with an explicit configuration of the plugins if you don't like to use the parent POM.

stefanbirkner commented 8 years ago

You have to add the ossrh username and password to your settings:

<settings>
  <servers>
    <server>
      <id>ossrh</id>
      <username>your-jira-id</username>
      <password>your-jira-pwd</password>
    </server>
  </servers>
</settings>
npathai commented 8 years ago

@stefanbirkner Sorry to bother you. I have created a ticket for OSSRH access. I was learning about publishing artifacts and stumbled upon PGP signing. It might sound like a dumb question but do I need to worry about signing the artifacts?

stefanbirkner commented 8 years ago

AFAIK it is mandatory to sign artifacts that are published to Maven Central.

npathai commented 8 years ago

@stefanbirkner Thought as much. And there is a follow up question, I have understood that I need to generate public private key pair and share the public key on the server. Sign my artifacts and then upload.

The question is how do you share private key across multiple machines I work on?

stefanbirkner commented 8 years ago

They are just files that can be copied ;-)