'Gradle resolveAndLockAll couldn't resolve gradle-download-task
resolveAndLockAll fails to resolve de.undercouch:gradle-download-task:5.1.0
./gradlew rALA --write-locks 8s 12:17:24
> Configure project :
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[checkstyle] WARNING - tasks disabled
> Task :resolveAndLockAll FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':resolveAndLockAll'.
> Could not resolve all files for configuration ':default'.
> Could not resolve de.undercouch:gradle-download-task:5.1.0.
Required by:
project :
> Cannot choose between the following variants of de.undercouch:gradle-download-task:5.1.0:
- javadocElements
- shadowRuntimeElements
- sourcesElements
All of them match the consumer attributes:
- Variant 'javadocElements' capability de.undercouch:gradle-download-task:5.1.0:
- Unmatched attributes:
- Provides org.gradle.category 'documentation' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.docstype 'javadoc' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Variant 'shadowRuntimeElements' capability de.undercouch:gradle-download-task:5.1.0:
- Unmatched attributes:
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'shadowed' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Variant 'sourcesElements' capability de.undercouch:gradle-download-task:5.1.0:
- Unmatched attributes:
- Provides org.gradle.category 'documentation' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.docstype 'sources' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 862ms
1 actionable task: 1 executed
project compiles and runs fine, just can't generate the lockfile.
Any ideas?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
