Micronaut is a new JVM-based framework that is designed for building twelve-factor microservice applications.

The project was initiated by OCI and the team that built the Grails framework, officially announced by Graeme Rocher at Greach Conference 2018, and publicly open-sourced under Apache License 2 on May 23rd, 2018. The first milestone release towards version 1.0.0 was released today, on May 30th, 2018. As the official guide states, “Micronaut is developed by the creators of the Grails framework and takes inspiration from lessons learnt over the years building real-world applications from monoliths to microservices using Spring, Spring Boot and Grails.”

Micronaut’s benefits include a fast startup time and low memory footprint that not only allow the development of serverless applications. …

To activate type checking for all your Groovy classes, you can add the Groovy compilation configuration from this article to your compileGroovy Gradle task. Doing that is equivalent to annotating each class with the @TypeChecked annotation.


apply plugin: 'groovy'compileGroovy.groovyOptions.configurationScript = file('gradle/config/groovyc.groovy')

Add the file gradle/config/groovyc.groovy Groovy compiler configuration script relative to your build.gradle:

import groovy.transform.TypeChecked

withConfig(configuration) {

The configuration references a CompilerConfiguration instance. That’s how you‘ve declared an AST transformation compilation customizer to activate static type checking for all your Groovy files.

When you are using an undeclared variable, the compileGroovy task will throw an error like “[Static type checking] — The variable [naame] is undeclared” now, thus helping you to find typos, unmatched return types, wrong assignments, unavailable variables and methods, you name it. …

The OWASP dependency-check provides monitoring of the libraries you use in your Java project to identify the use of known vulnerable components.

It produces an individual analysis report for the issue of “Using Components with Known Vulnerabilities” which is listed in the OWASP Top Ten 2017.

Gradle plugin

The gradle plugin can create a report of known vulnerable components that are included in the build of your project. You include it in your build.gradle:

buildscript {
repositories {
dependencies {
classpath 'org.owasp:dependency-check-gradle:3.1.2'

apply plugin: 'org.owasp.dependencycheck'

Afterwards you should integrate the check into your build system by using the…


Jonas Havers

Remote Freelance Software Engineer. Translates ideas into products with Java, Kotlin, TypeScript and JavaScript. Feedback?@JonasHavers https://jonas-havers.de/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store