You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have various Gradle build files that use the "ant" task in conjunction with a closure which contains a set of ant tasks. Running the build files with Gradle 7.6, the build fails. Using the previous version 7.5.1, the build succeeds.
Here is a simple test that fails:
task test {
doLast
{
ant
{
echo (message: 'hello world!')
}
}
}
Expected Behavior
expected the output of
[ant:echo] hello world!
Current Behavior
Execution failed for task ':test'.
> Problem: failed to create task or type call
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Context
The given test case works with 7.5.1, but not with 7.6.
As I was unsure whether it is a bug or intended behavior, I asked in the Gradle forum about it (see here). I was told that this is likely not intended and may relate to the pull request 21242.
Steps to Reproduce
place the example in a "build.gradle" file, add an empty "settings.gradle". Run "gradle test" with the respective versions of Gradle.
Your Environment
Linux, Java 8 (Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode))
The text was updated successfully, but these errors were encountered:
I have various Gradle build files that use the "ant" task in conjunction with a closure which contains a set of ant tasks. Running the build files with Gradle 7.6, the build fails. Using the previous version 7.5.1, the build succeeds.
Here is a simple test that fails:
Expected Behavior
expected the output of
Current Behavior
Context
The given test case works with 7.5.1, but not with 7.6.
As I was unsure whether it is a bug or intended behavior, I asked in the Gradle forum about it (see here). I was told that this is likely not intended and may relate to the pull request 21242.
Steps to Reproduce
place the example in a "build.gradle" file, add an empty "settings.gradle". Run "gradle test" with the respective versions of Gradle.
Your Environment
Linux, Java 8 (Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode))
The text was updated successfully, but these errors were encountered: