gradle-plugins icon indicating copy to clipboard operation
gradle-plugins copied to clipboard

Support Gradle 8.x

Open lbenedetto opened this issue 2 years ago • 5 comments

After updating to Gradle 8.0.2:

Could not set unknown property 'classifier' for task ':jarTest'

Seems classifier was deprecated a while ago and finally removed

lbenedetto avatar Mar 13 '23 21:03 lbenedetto

I don't think I will update the plugin. It is old and has just a few lines of of gradle configuration. Simply copy it to your build.gradle and adjust it.

Here is the code: https://github.com/hauner/gradle-plugins/blob/master/jartest/src/main/groovy/com/github/hauner/gradle/jartest/JarTestPlugin.groovy

hauner avatar Mar 14 '23 16:03 hauner

Thanks for this hint. While its easy to copy the lines in every Gradle configuration, its still a bit annoying to have all these lines in the configuration. I've adjusted the plugin and created a PR: https://github.com/hauner/gradle-plugins/pull/9 Could you look over it, and release it, if it works?

DaGeRe avatar May 24 '23 13:05 DaGeRe

there was a bit more to do than in #9, but thanks for the starter :-) I created a new version 1.1.0.

It is now waiting for approval on plugins.gradle.org, should be available in a few days.

hauner avatar May 28 '23 08:05 hauner

Thanks for updating.

I ended up switching to a relatively new gradle feature called java-test-fixtures which is a cleaner solution for my project anyway. It allows sharing of specific classes between test modules.

https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures

People encountering this thread may want to consider if it makes sense for them as well.

lbenedetto avatar Jun 01 '23 08:06 lbenedetto

Yes, found the built-in stuff as well and linked to it in the README. :-)

hauner avatar Jun 02 '23 06:06 hauner