Java アプリのコンパイルバージョンを指定する
コンパイル時のコンパイラバージョン指定方法をメモします。現時点では Java のバイナリレベルは 1.6 で止めてしまうのが頭の良い選択と考えています。以下を
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.0</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin>