Open
Description
See https://docs.gradle.org/current/samples/sample_problems_api_usage.html#emitting_a_problem
Current results:
./gradlew -Pcoverage=abc
Type-safe project accessors is an incubating feature.
FAILURE: Build failed with an exception.
* Where:
Build file 'pgjdbc/build.gradle.kts' line: 6
* What went wrong:
An exception occurred applying plugin request [id: 'build-logic.repositories']
> Failed to apply plugin 'build-logic.build-params'.
> Could not create an instance of type buildparameters.BuildParametersExtension.
> Value 'abc' for parameter 'coverage' is not a valid boolean value. Allowed values are strings 'true', '1', and empty string for true, and string 'false' for false
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 1s
23 actionable tasks: 23 up-to-date
Even though the message itself is more-or-less actionable, try: --stacktrace, --info
below is not really helping much.
Gradle Problems API could make it better so the reported problem could include a solution like Use one of ... for parameter ... or omit it to keep the default value ...
Metadata
Metadata
Assignees
Labels
No labels