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

Can't compile Java 13 and Groovy 2.5.8 #1021

Closed
MilleR98 opened this issue Jan 16, 2020 · 3 comments
Closed

Can't compile Java 13 and Groovy 2.5.8 #1021

MilleR98 opened this issue Jan 16, 2020 · 3 comments

Comments

@MilleR98
Copy link

MilleR98 commented Jan 16, 2020

Java 12 works fine, but when switching to 13 version it shows me next errors

image

POM.xml:

<java.version>13</java.version>

<maven.compiler.source>${java.version}</maven.compiler.source>

<maven.compiler.target>${java.version}</maven.compiler.target>

<javax.version>1.5.4</javax.version>

<groovy.version>2.5.8</groovy.version>

<lombok.version>1.18.10</lombok.version>

....

<plugins>
  <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
  </plugin>
  <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.8.1</version>
    <configuration>
      <compilerId>groovy-eclipse-compiler</compilerId>
      <source>{java.version}</source>
      <target>{java.version}</target>
      <verbose>true</verbose>
      <fork>true</fork>
      <compilerArguments>
        <javaAgentClass>lombok.launch.Agent</javaAgentClass>
      </compilerArguments>
    </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>${groovy.version}-01</version>
      </dependency>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>1.18.10</version>
      </dependency>
    </dependencies>
  </plugin>

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
      <source>${java.version}</source>
      <target>${java.version}</target>
    </configuration>
  </plugin>
</plugins>
@timyates
Copy link
Member

#963

@MilleR98
Copy link
Author

#963

so should I wait until v3.6.0 will be released?

@eric-milles
Copy link
Member

For Java 13 support, the minimum groovy-eclipse-batch version is 2.5.8-03.

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

No branches or pull requests

3 participants