Micronaut Template project makes use of Java 11 version.
In order to use this Micronaut Template project, press the
Use this template button on the top right of the repository's main page.
- Static analysis is provided by Detekt
./gradlew detekt- Formatting is provided by Spotless
./gradlew spotlessApplycp .env.sample .env.local
./gradlew functionalTestMigration files located in app/src/main/resources/databasemigrations and are managed by Flyway.
./gradlew generateMigration -PflywayScriptName=<SQL_SCRIPT_DESCRIPTION>V<TIMESTAMP>**<SQL_SCRIPT_DESCRIPTION>.sqlAdd the following in any of your subprojects:
plugins {
id("com.blueground.micronaut.template")
}then you can use any of the available extensions.
After adding the Micronaut Template plugin above:
healthCheckExtension {
healthEndpoint.set("http://localhost:8080/management/health")
}Open Swagger
All dependency versioning is managed through gradle.properties in the root of project.
Template project's Kotlin code style is the official one. If you need to make any changes you can update .editorconfig
.
