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
1. create_gradle_6.1_project
$ mkdir tmp && cd tmp # create a temp directory and cd inside
$ ls -la # ensure the directory is empty
.
..
$ ../gradlew qwerty # <-- "../" is important !!
FAILURE: Build failed with an exception.
* What went wrong:
Task 'qwerty' not found in root project 'test'.
^^ task failure is expected
Note: new folders appear after Gradle failure:
$ ls -la
.
..
.gradle # <-- watch this
gradle # <-- and this
The text was updated successfully, but these errors were encountered:
This would cause a couple of bugs:
- a `gradle` directory would be created for each build even if
they didn't have one
- a `gradle` directory would be created for subprojects if the
gradle command was executed from this directory (#11971)
In addition, this would cause the verification metadata file to be
ignored if running from a subproject directory.
This would cause a couple of bugs:
- a `gradle` directory would be created for each build even if
they didn't have one
- a `gradle` directory would be created for subprojects if the
gradle command was executed from this directory (#11971)
In addition, this would cause the verification metadata file to be
ignored if running from a subproject directory.
The bug (#11971) makes the build under test, called by the TAPI,
fail because the working directory is the working directory of
Gradle itself. This causes the test to try to read the verification
metadata file of Gradle itself, which exists, instead of not finding
any verification file like it should, because the build under test
doesn't have any.
The workaround is to change the working directory from the build
under test.
big-guy
changed the title
Gradle 6.1+ generates an empty .gradle and gradle directories on each execution in the current working folder
Gradle 6.1 generates an empty .gradle and gradle directories on each execution in subproject directories
Jan 24, 2020
Expected Behavior
Gradle should not generate dummy directories on its own.
Current Behavior
Gradle generates
gradle
in the current working directory.Sometimes it creates
.gradle
:((It looks like 438e4f9#diff-cffca3a015bacf898383932f0abada06R40-R43 results in creating
gradle
directory on each execution (e.g. even if settings.gradle.kts throws an exception and includes 0 projects).The same issue can be reproduced in gradle-6.2-20200121230035+0000-all.zip
@melix , is it something you know?
Steps to Reproduce
^^ task failure is expected
Note: new folders appear after Gradle failure:
The text was updated successfully, but these errors were encountered: