Skip to content

bluegroundltd/property-location-visualizer

Repository files navigation

Micronaut Template

Java Version

Micronaut Template project makes use of Java 11 version.

How to use

In order to use this Micronaut Template project, press the Use this template button on the top right of the repository's main page.

Use this template

Static analysis & formatting

  • Static analysis is provided by Detekt
./gradlew detekt
  • Formatting is provided by Spotless
./gradlew spotlessApply

Running functional tests

cp .env.sample .env.local
./gradlew functionalTest

Migrations

Migration files located in app/src/main/resources/databasemigrations and are managed by Flyway.

Run the generateMigration Gradle task to generate a new SQL migration file

./gradlew generateMigration -PflywayScriptName=<SQL_SCRIPT_DESCRIPTION>V<TIMESTAMP>**<SQL_SCRIPT_DESCRIPTION>.sql

Using Micronaut Template Gradle plugin

Add the following in any of your subprojects:

plugins { 
    id("com.blueground.micronaut.template")
}

then you can use any of the available extensions.

Using HealthCheck extension

After adding the Micronaut Template plugin above:

healthCheckExtension {
    healthEndpoint.set("http://localhost:8080/management/health")
}

API docs

Open Swagger

Dependencies versioning

All dependency versioning is managed through gradle.properties in the root of project.

Kotlin code style

Template project's Kotlin code style is the official one. If you need to make any changes you can update .editorconfig .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published