Compatiblity problem between gradle-jpi-plugin:0.26.0 (latest) and gradle:<4.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compatiblity problem between gradle-jpi-plugin:0.26.0 (latest) and gradle:<4.4

吴思稣
It report an exception `Unable to load class 'org.gradle.api.file.DirectoryProperty'` when I update the gradle plugin [gradle-jpi-plugin](https://github.com/jenkinsci/gradle-jpi-plugin) to version 0.26.0, which is the [latest release](https://github.com/jenkinsci/gradle-jpi-plugin/releases/tag/0.26.0) on 5 Apr 2018.
And it runs normally with `gradle-jpi-plugin:0.25.0`.

I figure out that it seems like this [commit](https://github.com/jenkinsci/gradle-jpi-plugin/commit/64ef3fd963080230c94c85beb1af0f07ab6b2aa7) break the compatibility.
In the commit, it import the class `org.gradle.api.file.DirectoryProperty`, which first occurs in gradle of version 4.4.

I think either adding a requirement for gradle version on README, or fixing this break should be done.
Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/de59264d-5b8d-4934-8aea-844295beb2f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.