Skip to content

Uses shaded eclipse dependencies in Gradle plugin #148

Closed
@magJ

Description

@magJ

As mentioned in #139 (comment)
When running the gradle plugin using versions of org.eclipse.jdt:org.eclipse.jdt.core above 3.17.0, formatter tasks(ie checkFormat* or format) fail with a Java heap space issue.

Exact cause is unknown, but it appears as though the loop in io.spring.javaformat.formatter.eclipse.DefaultCodeFormatter#tokenizeSource never encounters it's break condition.

Demo project that produces the issue: https://github.com/magJ/spring-format-issue

Now using the plugin, and replacing the shaded runtime jar with the real eclipse dependency, is not documented anywhere, so I anticipate this being closed as an unsupported use case.
I could raise the problems with using the shaded runtime jar as a separate issue if desired, but in short, it contains all sorts of classes and junk that conflict with other plugins used in gradle.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions