In this last post about Java 9 modules we will take a closer look at some of the modules directives. We will explain what they mean and show the usage by means of an example. We will build upon the example used in part 1 and part 2, it is advised to read these posts before continue reading. The sources used in this post are available on GitHub in branch feature/modules-directives.
In this post we will take a closer look at Java 9 Modules. The focus lies on how modules affect us when using an IDE like IntelliJ and using a build tool like Maven. It is advised to read the post Java 9 Modules introduction (part 1). We will use the same example, starting with a single module application and afterwards converting it into a multi-module application. The examples used, can be found on GitHub.
In this post we will introduce the Java Platform Module System (JPMS) which is the biggest change in the Java 9 release. In this post we will take a look at some basics of JPMS (Why do we need modules? What has changed to the JDK?). After that, we will take a look at how a single module application can be created, compiled and executed. At the end, we will take a look at how a multi module application can be created, compiled and executed. In this post we will only use command line tools. The examples used, can be found on GitHub.
This week we will take a look at lambda expressions. We will take a look at some basics, show some of the standard functional interfaces, show how lambdas can be used with Streams and at the end it is shown how method references can be used. After reading this, you will have some basic knowledge of lambda expressions. The examples can be found at GitHub in the repository https://github.com/mydeveloperplanet/mylambdaplanet
On the 7th of November 2017, a new version of The Scrum Guide is released by Ken Schwaber and Jeff Sutherland. Since most of us are working in an agile/scrum environment, it is good to take a closer look at the changes that were made to the guide. Per section I will try to highlight the major changes. You can also look at the revision history of the guide itself where the changes are listed. The revision history of the guide only mentions the high level changes, but more textual changes are made to the guide than mentioned in the revision history.
In this second post about Java 9, we will focus on changes in the Collections and Streams API in the Java language. Examples can be downloaded via the following git repository: https://github.com/mydeveloperplanet/myjava9planet . The examples in the post below can be executed with JShell, the examples on GitHub contain the examples with unit tests.
The first post in the series of Java 9, which I announced a few weeks ago, will be about JShell. JShell is the REPL (Read-Eval-Print loop) tool for the Java language. The tool allows you to test snippets of code outside of your IDE. In this introduction, we will explore some of the features of JShell.
Encounter difficulties keeping your dependencies and plugins up-to-date into your Maven POM file? The Versions Maven Plugin is a Maven plugin which provides you the information of which libraries could be updated. In this post some of my experiences with the plugin. Continue reading “Versions Maven Plugin”
Java 9 has been released recently. The upcoming posts will be dedicated to Java 9 and the new features it has to offer. First post in this series is installation of Eclipse with Java 9. If you are using IntelliJ, just install IntelliJ, locate the java 9 SDK and you can start right away. Continue reading “Installation Eclipse with Java 9”
Sometimes, you make a mistake and you start with a lot of git repositories that actually belong to each other and are dependent of each other. You are stuck with these git repositories and you want to combine them into one git repository. But, you don’t want to lose your git history. I suggest, in order to avoid these problems, to start with one git repository when you do not have good reasons to split an application into more repositories. It is easier to split repositories than to combine them and working with one git repository makes the administration a lot easier. However, if you are stuck with too many repositories and want to get rid of them, the guide below will help you. Continue reading “Combine git repositories”