eerohele / saxon-gradle

A Gradle plugin for running XSLT transformations with Saxon
MIT License
16 stars 6 forks source link

Gradle 7.1.1 compat #32

Closed jhyry-gcpud closed 3 years ago

jhyry-gcpud commented 3 years ago

Fix for compatibility with Gradle 7.1.1.

eerohele commented 3 years ago

There's a bunch of changes here that don't seem related to Gradle 7.1.1 compatibility. The Eclipse stuff, for instance.

Can you explain how the plugin currently isn't compatible with Gradle 7.1.1 and how the changes here fix it?

jhyry-gcpud commented 3 years ago

@eerohele Good point. I can remove that stuff. I have the following list of changes required to make the build compatible with Gradle 7+:

Let me know if this is sufficient information or not. Thanks so much for taking a look at this!

Jon

jhyry-gcpud commented 3 years ago

The result of running the build on 7.1.1 is the following, with --no-build-cache and --rerun-tasks to ensure everything works:

PS saxon-gradle> ./gradlew clean build --no-build-cache --rerun-tasks

> Task :groovydoc
Trying to override old definition of task fileScanner
The Cobertura XML file [null] is not accessible; skipping this rule
The Cobertura XML file [null] is not accessible; skipping this rule

BUILD SUCCESSFUL in 33s
15 actionable tasks: 15 executed

Here's the build result: saxon-gradle_7.1.1_build.zip

jhyry-gcpud commented 3 years ago

In regard to src/main/groovy/com/github/eerohele/SaxonXsltTask.groovy, the plugin would not build in 7.1.1 without the added annotations and getters.

jhyry-gcpud commented 3 years ago

@eerohele Is this PR ok now?

eerohele commented 3 years ago

@jhyry-gcpud Sorry for the delay. Life keeps getting in the way.

I looked into it a bit, and I think I fixed most of the Gradle 7 compatibility issues. I've published v0.9.0-beta4 into the Gradle plugin portal if you want to give it a try.

After these changes, I don't get any deprecation warnings regarding the @Input or @Internal stuff. If there's a problem that requires them to be added that you'd like to get fixed, please make a new PR that only adds those attributes, with an explanation of the problem it fixes.

jhyry-gcpud commented 3 years ago

I very much understand life getting in the way. Thanks again so much for looking at this and working out the underlying issues, I can most definitely give this a try sometime in the next week or 2. Cheers!

jhyry-gcpud commented 3 years ago

@eerohele Works like a charm! Thanks again!

eerohele commented 3 years ago

Cool, thanks for reporting back!