Groovy
Groovy 2.5 Update Webinar Recording
Groovy keeps growing tremendously. Second most popular number on the JVM after Java. 1st quarter 2018 twice number of download vs 1st quarter 2017.
In the presentation, Paul covers some of the features in 2.5 such as the new AST transforms, improvements in previous transforms, new methods, Macros support ... and the improvements coming in 3.0. I love that 3.0 brings as close as possible interoperability with Java (Lambda support, Java-style array initialization etc).
Checkout the Slides.
Why Groovy?
This talk by @codejennerator at Gr8Conf 2018 wil help you convince your boss and others to use Groovy. Moreover, it clarifies several Groovy truths and myths.
Micronaut
Java Bean Validation Basics
Validating user input is, of course, a super common requirement in most applications, and the Java Bean Validation framework has become the de-facto standard for handling this kind of logic.
Micronaut builds its validation advice on javax.validation
.
JSR 380 is a specification of the Java API for bean validation, part of JavaEE and JavaSE, which ensures that the properties of a bean meet specific criteria, using annotations such as @NotNull, @Min, and @Max.
Gradle
Introducing Compile-Only Dependencies
Compile-only dependencies address a number of use cases, including:
- Dependencies required at compile time but never required at runtime, such as source-only annotations or annotation processors;
- Dependencies required at compile time but required at runtime only when using certain features, a.k.a. optional dependencies;
- Dependencies whose API is required at compile time but whose implementation is to be provided by a consuming library, application or runtime environment.
Compile-Only dependencies and Micronaut's Conditional Beans are a powerful combination.
Continue Build Even with Failed Tasks
If we run a Gradle build and one of the tasks fails, the whole build stops immediately. So we have fast feedback of our build status. However, when we use the --continue command line option Gradle will execute every task where the dependent tasks are not failing.
Comment
3 years ago, when I started this newsletter I had no child. Last week my second son was born. What a journey!
Enjoy a concise issue of Groovy Calamari, I am busy changing diapers. 😉
Sergio del Amo