spring-projects / spring-rewrite-commons

Apache License 2.0
9 stars 11 forks source link

Dependency to Gradle Toopling API is problematic #77

Closed fabapp2 closed 7 months ago

fabapp2 commented 7 months ago

The Issue

The Gradle support for OpenRewrite requires executing a Gradle build. Executing a Gradle build from a JVM requires the Gradle Tooling API. The Gradle Tooling API (8.4) is not available from Maven central and thus requires all clients to declare an additional repo to https://repo.gradle.org/gradle/libs-releases. This is not ideal.

What needs to be done

Evaluate remediations to free clients from declaring a repo.

fabapp2 commented 7 months ago

Clients must add the repository:

<repository>
    <id>gradle</id>
    <url>https://repo.gradle.org/gradle/libs-releases</url>
</repository>