GroovyGradle with Greclipse throwing IOException

Open
#2,841 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java
Domain
build-system

Research direction

Start by reproducing the failure with the spotless.gradle groovyGradle block on JDK 17 after migrating from Spotless v7 to v8. Inspect the :core:ui:spotlessGroovyGradle task and its “Failed to provision P2 dependencies” exception; done means the task runs successfully with greclipse.

Written by the indexing model from the issue text.

Description

I'm on a multi-modules Android project with JDK 17 and I've migrated form Spotless v7.X.X to v8.X.X. I had this block on the spotless.gradle configuration file for gradle:

groovyGradle {
    target("**/*.gradle")
    targetExclude("$projectDir/build/**")

    greclipse()
}

But now when running spotless I'm getting the following exception:

Execution failed for task ':core:ui:spotlessGroovyGradle'.
> java.io.IOException: Failed to provision P2 dependencies
Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.