Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Java 15 #1162

Closed
eric-milles opened this issue Sep 17, 2020 · 3 comments
Closed

Add support for Java 15 #1162

eric-milles opened this issue Sep 17, 2020 · 3 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Sep 17, 2020

@mojo2012
Copy link

Hi all,

I'm currently trying to transition to java 15 (from 14) but the groovy compiler plugin seems to have problems with java 15. This is my compiler config.

<groovy.version>3.0.7</groovy.version>

<plugin>
	<artifactId>maven-compiler-plugin</artifactId>
	<extensions>true</extensions>
	<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.7-01</version>
		</dependency>
		<dependency>
			<groupId>org.codehaus.groovy</groupId>
			<artifactId>groovy</artifactId>
			<version>${groovy.version}</version>
			<classifier>indy</classifier>
		</dependency>
	</dependencies>
	<configuration>
		<compilerId>groovy-eclipse-compiler</compilerId>
		<compilerArguments>
			<indy />
			<configScript>${pom.basedir}/config.groovy</configScript>
		</compilerArguments>
		<failOnWarning>false</failOnWarning>
		<showWarnings>false</showWarnings>
		<verbose>false</verbose>
	</configuration>
</plugin>

I'm using the latest version of all dependencies. Still I get an error that only java up til 14 is supported. Any idea when the java 15 compiler will be supported?

@eric-milles
Copy link
Member Author

Eclipse 4.18 releases today and then the batch compiler needs to be built. You can build your own version of the batch compiler at any time using these steps: https://github.com/groovy/groovy-eclipse/wiki/Building-Maven-Batch-Compiler

@eric-milles
Copy link
Member Author

https://bintray.com/groovy/maven/groovy-eclipse-batch/3.0.7-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants