A library of common functions that can be used across credential issuers for validation, event transmission, describing common data etc.
To publish a new version to Maven Central, follow these steps:
-
Bump the version
Create a pull request that updates thebuildVersioninbuild.gradle. -
Merge the PR
Once approved, merge the pull request into themainbranch. -
Create a new GitHub release
Go to Create new release and:- Set the tag name to match the version from
build.gradle, prefixed with v (e.g. v1.0.0) - Use the same value for the release title (e.g. v1.0.0)
- Click "Generate release notes" and edit them for clarity and readability
- Click "Publish release"
- Set the tag name to match the version from
-
Trigger the Maven publish action
Publishing will start automatically via the Publish to Maven Central GitHub Action. -
Verify the release
It may take up to 15 minutes for the new version to appear on Maven Central.
To test changes made to this repository with a development CRI stack you must follow the steps below to publish to mavenLocal:
Within this repository:
- Update
buildVersioninbuild.gradleto the next version to avoid version conflicts - Comment out
signAllPublications()within themavenPublishingblock - Run the command:
./gradlew publishMavenPublicationToMavenLocal
In your cri repo:
- Update the version used for
cri_common_libto the same version set above inbuild.gradle - Add
mavenLocal()to therepositoriessections inbuild.gradle. Note: This may need to be done in multiple places depending on the CRI project setup.
You should now be able to build your CRI stack and deploy to AWS with your local cri_common_lib changes.