dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

Document how withPluginClasspath is broken

Open TWiStErRob opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

I've been successfully using withPluginClasspath for years now, so I'm really wondering what's wrong with it.

Describe the solution you'd like

Any kind of documentation other than stating that "it's broken". For example a link to Gradle issue, or blog post.

https://github.com/autonomousapps/dependency-analysis-gradle-plugin/blob/6df0bfa7166832bd2468ec9482f8d48dbeae577e/testkit/README.asciidoc#L5

Additional context

I got here from WithPluginClasspathUsage which just links to your plugin:

Avoid usage of GradleRunner#withPluginClasspath, which is broken. Instead use something like https://github.com/autonomousapps/dependency-analysis-gradle-plugin/tree/main/testkit#gradle-testkit-support-plugin

TWiStErRob avatar Jan 21 '25 20:01 TWiStErRob

I feel like you're asking me to write a blog post 😂 which I'm open to.

autonomousapps avatar Feb 09 '25 19:02 autonomousapps

I would be happy with a oneliner too, anything more concrete and reproducible than "it doesn't work".

TWiStErRob avatar Feb 09 '25 22:02 TWiStErRob

Forgot I actually wrote about it at https://dev.to/autonomousapps/defensive-development-gradle-plugin-development-for-busy-engineers-486c.

autonomousapps avatar Feb 10 '25 19:02 autonomousapps