Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PublishGuide to use Gradle AntBuilder #13622

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

jamesfredley
Copy link
Contributor

@jamesfredley jamesfredley commented Sep 6, 2024

instead of deprecated version from Groovy

required for grails/grails-async#140

@jamesfredley jamesfredley changed the title Update PublishGuide to use Gradle AntBuilder i Update PublishGuide to use Gradle AntBuilder Sep 6, 2024
@jamesfredley jamesfredley requested a review from matrei September 6, 2024 00:12
@jamesfredley jamesfredley merged commit 8a7e66c into 7.0.x Sep 6, 2024
15 checks passed
@jamesfredley jamesfredley deleted the jamesfredley/resolve-PublishGuide branch September 6, 2024 02:08
@matrei
Copy link
Contributor

matrei commented Sep 6, 2024

@jamesfredley Without having checked why this was a problem for grails-async, can't we use groovy.ant.AntBuilder instead of a class from Gradle marked in an internal package.

@jamesfredley
Copy link
Contributor Author

jamesfredley commented Sep 6, 2024

@matrei I end up running into this working on grails-async and grails-docs last evening which both use PublishGuide.

The issue was the following line in PublishGuide.groovy where project.ant was now org.gradle.api.AntBuilder and could not be cast to groovy.util.AntBuilder (publisher.ant), which was deprecated.

publisher.ant = project.ant

I now see that org.gradle.api.AntBuilder extends groovy.ant.AntBuilder, so I will create another PR to get rid of the internal Gradle package, which I didn't love.

@jamesfredley
Copy link
Contributor Author

#13625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants