The library is published to a central Maven repository. To use the library, add the following to your build.gradle:
implementation "bio.terra:java-pfb-library:<Tagged Version>"
You can find the latest tagged version on Github.
JFrog Artifactory is used to publish libraries to a central Maven repository. The library version number is the version in settings.gradle. We use github actions to bump the version and publish to Artifactory.
The Publishing Procedure
- After PR is merged to main branch:
- A Github Action bumps the minor version in settings.gradle and tags the release in github
- Github Action publishes to libs-release-local in Artifactory
- To bump major version, we need manually update version in settings.gradle value first then create the release.
Running Publish Locally
export ARTIFACTORY_USERNAME=$(vault read -field=username secret/dsp/accts/artifactory/dsdejenkins)
export ARTIFACTORY_PASSWORD=$(vault read -field=password secret/dsp/accts/artifactory/dsdejenkins)
./gradlew artifactoryPublish