NAV common Java modules
These libraries are in use by many applications in NAV.
Modules
Audit log
Audit logging on NAIS. Contains code and logback config to make it easy to write audit logs.
Kafka
High-level abstractions built on-top of org.apache.kafka.kafka-clients
to prevent common mistakes when dealing with kafka.
Token client
OAuth2 token clients which can be used with Azure AD and TokenX for machine-to-machine and on-behalf-of flows when sending requests between applications. Provides easy-to-use clients which requires minimal configuration for applications running on NAIS.
Version 1
This version is tightly coupled to api-app
and contains many modules that can be considered deprecated after the release of version 2.
This version will continue to live on the master
branch until most users of common-java-modules
has migrated over to version 2.
If possible, no new features should be added to version 1.
Version 2
Version 2 removes all of the deprecated modules from version 1 (including api-app
) and aims to provide framework agnostic modules that can be used in any application.
Checking for new dependency versions
mvn versions:display-dependency-updates
Building the libraries
In order to build common-java-modules
, run from the root directory:
mvn clean install
Contact
For questions, create an issue on the Github repository.
See the CODEOWNERS file for information on who to contact.