Skip to content

Template to easily create a Java library and automatically publish it to GitHub Package and Maven Central.

License

Notifications You must be signed in to change notification settings

MathieuSoysal/Java-Maven-library-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulnerabilities Coverage Maintainability Rating GitHub Actions Contributor Covenant Javadoc

Java Maven Library Template GitHub

Template to easily create a Java Maven library and publish it automatically on GitHub Package and Maven Central, the publication is automated via the repo versions.

Use template

To use this template, you just need to click on "Use this template" at the top of the main page of this repository, or you can copy/paste this repository.

Requirements

Template configurations :

  • Fix pom.xml
    • To guide you, a FIXME tag has been added to all lines to be edited.
  • Config SonarCloud
  • Create your GitHub secrets on your repository
    • NEXUS_USERNAME with your username used on Sonatype
    • NEXUS_PASSWORD with your password used on Sonatype
    • GPG_PRIVATE_KEY with the private key of your generated pgp key
      • to get the private key gpg --armor --export-secret-key <key-id> > privkey.asc
    • GPG_PASSPHRASE with the passphrase of your gpg key
  • Activate the JavaDoc GitHub page
    • To enable the JavaDoc GitHub Page, you need to enable the GitHub page in your repository settings for the javadoc branch.

Badges

Don't forget to add your own SonarCloud badges to your readme 😉

  [![Javadoc](https://img.shields.io/badge/JavaDoc-Online-green)](https://<github-username>.github.io/<github-repo>/javadoc/)

On the link of JavaDoc badge, replace <github-username> by your GitHub username, <github-repo> by the name of your GitHub repository.

Contact

If you have any problems setting up CI, CD or other, do not hesitate to contact me at Mathieu.Soysal@etu.umontpellier.fr

About

Template to easily create a Java library and automatically publish it to GitHub Package and Maven Central.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages