initialize task fails silently
- Dominant language
- Kotlin
- Stars
- 1.2k
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Hello
Gradle 6.7
### Actual Behavior:
When I run the following build script :
```
- $GRADLE_HOME/bin/gradle :initialize
- $GRADLE_HOME/bin/gradle :deploy
```
The build continue even when the initialize step fails
```
> Task :shadowJar UP-TO-DATE
Initializing the backend...
Error refreshing state: AccessDenied: Access Denied
status code: 403, request id: EEEEEEE7C7C228D1, host id: J========================================================================
> Task :initialize
Error: Error loading state: AccessDenied: Access Denied
status code: 403, request id: EEEEEEE7C7C228D1, host id: J========================================================================
> Task :deploy
```
### Expected Behavior:
The gradle task :deploy should not be executed when the :initialize task fails
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with Gradle 6.7 using the shown :initialize and :deploy task commands, including the AccessDenied failure. Inspect how the initialize task reports errors and how deploy is triggered; done means deploy is not executed when initialize fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100