Repository: calcite-avatica Updated Branches: refs/heads/master af2fded68 -> 8db4bc171
[CALCITE-2594] Ensure forbiddenapis and maven-compiler use the correct JDK version Close apache/calcite-avatica#74 Signed-off-by: Kevin Risden <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica/commit/8db4bc17 Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica/tree/8db4bc17 Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica/diff/8db4bc17 Branch: refs/heads/master Commit: 8db4bc171f20bf5a0270f1989d5ea8684f2cb2e7 Parents: af2fded Author: Kevin Risden <[email protected]> Authored: Tue Sep 25 12:38:32 2018 -0400 Committer: Kevin Risden <[email protected]> Committed: Tue Sep 25 13:01:49 2018 -0400 ---------------------------------------------------------------------- pom.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/8db4bc17/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 244a52d..0a2d6af 100644 --- a/pom.xml +++ b/pom.xml @@ -50,6 +50,11 @@ limitations under the License. </mailingList> </mailingLists> <properties> + <!-- Ensure that source and target version are overridden from base ASF POM. + This is also used by forbiddenapis to ensure correct signatures are loaded. --> + <maven.compiler.source>8</maven.compiler.source> + <maven.compiler.target>8</maven.compiler.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <top.dir>${project.basedir}</top.dir> <avatica.release.version>${project.version}</avatica.release.version> @@ -409,9 +414,9 @@ limitations under the License. </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> + <!-- If you are looking to change source/target, + change the maven.compiler.{source,target} property --> <configuration> - <source>8</source> - <target>8</target> <compilerArgs> <arg>-Xlint:deprecation</arg> </compilerArgs>
