Skip to content

Repository files navigation

Micronaut Database Authentication

Micronaut Java Library.

Latest version is compatible with Java 17 and Micronaut 4.

Contribution

Dependency Management

Micronaut Version

You define the version of Micronaut Platform and Micronaut Gradle Plugin in micronautVersion in gradle/libs.versions.toml. The Micronaut Gradle Plugin is also defined in settings.gradle.kts.

License Management

This template uses the Spotless Gradle Plugin to ensure every file contains a license matching the template in config/spotless.license.java.

Documentation

The submodule docs applies the Asciidoc Gradle Plugin to generate HTML documentation.

./gradlew :docs:asciidoctor

You can find the generated documentation in docs/build/asciidoc/index.html.

The asciidoc source files are in docs/src/docs/asciidoc.

Checkstyle

The template applies the Checkstyle Gradle Plugin. You can configure it with config/checkstyle/checkstyle.xml and config/checkstyle/supressions.xml

Code Coverage

The template applies the JaCoCo Gradle Plugin to get code coverage and the JaCoCo report Aggregation Plugin.

Run ./gradlew testCodeCoverageReport and you can access the HTML report open code-coverage-report/build/reports/jacoco/testCodeCoverageReport/html/index.html.

GraalVM Native Image

The template applies the Gradle Build Native Image Plugin. You can run the Gradle task ./gradlew nativeTest to ensure your library is compatible with Native Image.

Publish to Maven Central

1. Set projectVersion and tag

  • Bump up version. Ensure projectVersion does not contain -SNAPSHOT.
  • Tag it. E.g. v1.0.0

2. Verify release & deploy configuration

./gradlew jreleaserConfig

3. Ensure a clean deployment

./gradlew clean

4. Stage all artifacts to a local directory

./gradlew publish

5. Deploy and release

./gradlew jreleaserDeploy

About

Micronaut Java Library with common functionality for Database authentication.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages