caio.co/de/gula-bom

Pin a maven-compiler-plugin version

Mostly because `${maven.compiler.release}` is more sensical to me
than the source/target pair for this project.

It also allows me to add `--enable-preview` when playing around
with some preview features (switch expressions ATM. Cute).
Id
4f064cbc1e7b0c85adc043600dd5fab59c26b04b
Author
Caio
Commit time
2019-06-18T11:44:43+02:00

Modified pom.xml

@@ -32,8 +32,6
<properties>
<java.version>12</java.version>

- <maven.compiler.source>${java.version}</maven.compiler.source>
- <maven.compiler.target>${java.version}</maven.compiler.target>
<maven.javadoc.skip>true</maven.javadoc.skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -49,6 +47,7
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
<maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
+ <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
</properties>

<build>
@@ -96,6 +95,14
<remoteTagging>false</remoteTagging>
<goals>install</goals>
<tagNameFormat>@{project.version}</tagNameFormat>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${maven-compiler-plugin.version}</version>
+ <configuration>
+ <release>${java.version}</release>
</configuration>
</plugin>
</plugins>