This is a common root POM for many NAV projects. It defines versions of core plugins, configuration of code quality metrics, CI server URLs, and distribution management for artifact deploys.


Keywords
common-java-modules
License
MIT

Documentation

Maven Central Build Status

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.

Read more here

Kafka

High-level abstractions built on-top of org.apache.kafka.kafka-clients to prevent common mistakes when dealing with kafka.

Read more here

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.

Read more here

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.