Skip to content

Commit 9c65d2d

Browse files
committed
use release flag for the compiler-plugin
Signed-off-by: Ceki Gulcu <[email protected]>
1 parent 057ab67 commit 9c65d2d

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package ch.qos.logback.classic.tyler;public class TylerConfiguratorBase {
2+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package ch.qos.logback.classic.util;public class LevelUtil {
2+
}

logback-core/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@
8484
<goal>compile</goal>
8585
</goals>
8686
<configuration>
87-
<source>${jdk.version}</source>
88-
<target>${jdk.version}</target>
87+
<release>${jdk.version}</release>
8988
</configuration>
9089
</execution>
9190

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
<!-- minimal JDK version at runtime -->
5454
<jdk.version>11</jdk.version>
55+
<!-- See https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html -->
5556
<maven.compiler.release>${jdk.version}</maven.compiler.release>
5657
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5758

0 commit comments

Comments
 (0)