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
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:
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.
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:
apply plugin: 'org.owasp.dependencycheck'
Afterwards you should integrate the check into your build system by using the…