spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Path encoding problem with Groovy

Open alycklama opened this issue 1 month ago • 1 comments

There seems to be a path encoding issue with Groovy. In the root folder where the pom.xml is located, the following temporary directories are created:

file%3A%2Fvar%2Ffolders%2F9m%2F7lp33cd577ngz_41_806qk3m0000gn%2FT%2Fspotless-groovy9943439919469970507%2F/

Instead of /var/folders it seems to encode the slashes as %2F and colon as %2A.

Any idea what could be going on?

System details:

  • MacOS Sonoma 14.8.1
            <plugin>
                <groupId>com.diffplug.spotless</groupId>
                <artifactId>spotless-maven-plugin</artifactId>
                <version>3.0.0</version>
                <configuration>
                    <java>
                        <googleJavaFormat />
                    </java>
                    <groovy>
                        <greclipse>
                            <version>4.21</version>
                            <file>greclipse.properties</file>
                        </greclipse>
                    </groovy>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

alycklama avatar Nov 17 '25 09:11 alycklama

I can confirm the symptom is still present in spotless-maven-plugin v3.1.0, seems to be related to inclusion of the greclipse configuration.

dlehammer avatar Nov 30 '25 00:11 dlehammer