Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare project for Maven Central release #5

Closed
Glusk opened this issue Aug 14, 2020 · 9 comments
Closed

Prepare project for Maven Central release #5

Glusk opened this issue Aug 14, 2020 · 9 comments

Comments

@Glusk
Copy link
Owner

Glusk commented Aug 14, 2020

Setup Travis to deploy the project to Maven Central every time a new git tag is pushed.

Resources:

@Glusk
Copy link
Owner Author

Glusk commented Aug 14, 2020

Created new ticket at Sonatype JIRA: https://issues.sonatype.org/browse/OSSRH-59936

@Glusk
Copy link
Owner Author

Glusk commented Aug 14, 2020

Running

mvn clean compile

now only uses the module path during compilation.

@Glusk
Copy link
Owner Author

Glusk commented Aug 14, 2020

Running

mvn install

now successfully generates the javadocs in target/apidocs, thanks to this post.

@Glusk Glusk changed the title Setup Travis to deploy the project to Maven Central every time a new git tag is pushed Prepare project for Maven Central release Aug 14, 2020
Glusk added a commit that referenced this issue Aug 14, 2020
Glusk added a commit that referenced this issue Aug 14, 2020
@Glusk
Copy link
Owner Author

Glusk commented Aug 14, 2020

Added Sonatype credentials to Travis

@Glusk
Copy link
Owner Author

Glusk commented Aug 14, 2020

Look into gpg key generation!

@Glusk
Copy link
Owner Author

Glusk commented Aug 14, 2020

Move BinaryString and Identity to an internal package; keep them module-private.

Glusk added a commit that referenced this issue Aug 15, 2020
Glusk added a commit that referenced this issue Aug 15, 2020
@Glusk
Copy link
Owner Author

Glusk commented Aug 15, 2020

Project can now successfully be deployed Sonatype snapshot repo by running:

# set environment variables 'SONATYPE_PASSWORD' and 'SONATYPE_PASSWORD'
mvn deploy -P publish -DskipTests=true --settings ".travis/maven-settings.xml"

Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
@Glusk
Copy link
Owner Author

Glusk commented Aug 16, 2020

Release new version like so:

mvn release:prepare release:perform

Also, look into the specific plugin options. We might want to set the releaseVersion manually.


Typical workflow:

  • do some work on the branch
  • at some point, decide whether you've done enough work for a new major, minor or patch release
  • tag the version with a Sermver <TAG_NUMBER>, run the plugin and push changes to remote repo:
mvn --batch-mode release:prepare -DreleaseVersion=<TAG_NUMBER>

@Glusk
Copy link
Owner Author

Glusk commented Aug 16, 2020

Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 16, 2020
#5 Added an encrypted secret key that was generated on a Linux machine
Glusk added a commit that referenced this issue Aug 16, 2020
Glusk added a commit that referenced this issue Aug 17, 2020
Glusk added a commit that referenced this issue Aug 17, 2020
@Glusk Glusk closed this as completed Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant