You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Amit Chaudhary (Jira)" <ji...@apache.org> on 2020/04/23 23:23:00 UTC
[jira] [Created] (GROOVY-9521) groovy-eclipse-compiler not able to
compile code when use with java 14
Amit Chaudhary created GROOVY-9521:
--------------------------------------
Summary: groovy-eclipse-compiler not able to compile code when use with java 14
Key: GROOVY-9521
URL: https://issues.apache.org/jira/browse/GROOVY-9521
Project: Groovy
Issue Type: Bug
Environment: java -version
openjdk version "14" 2020-03-17
OpenJDK Runtime Environment AdoptOpenJDK (build 14+36)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14+36, mixed mode, sharing)
Reporter: Amit Chaudhary
I am still facing an issue using groovy eclipse compiler.
{code:java}
java -version
openjdk version "14" 2020-03-17
OpenJDK Runtime Environment AdoptOpenJDK (build 14+36)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14+36, mixed mode, sharing)
{code}
{code:java}
<properties>
<java.version>14</java.version>
</properties>{code}
{code:java}
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.3</version>
<type>pom</type>
</dependency>{code}
{code:java}
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
<source>14</source>
<target>14</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>3.6.0-03</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>3.0.3-01</version>
</dependency>
</dependencies>
</plugin>
{code}
{code:java}
--- maven-compiler-plugin:3.8.1:compile (default-compile) @ smoke-test ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] source level should be in '1.1'...'1.8','9'...'11' (or '5.0'..'11.0'): 14
[INFO] Found 0 errors and 0 warnings.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.733 s
[INFO] Finished at: 2020-04-23T18:58:21-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project XXXXX: Compilation failure -> [Help 1]
{code}
It is not able to identify source for java 14
--
This message was sent by Atlassian Jira
(v8.3.4#803005)