-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use @Option with ListProperty/SetProperty #10517
Comments
This looks like a good idea to me. Would you be willing to submit a PR? |
Maybe it would also make sense if you could somehow specify from the commandline, whether you want to replace any value set in the build script or add to the set or list of values. Especially for my use-case from which this issues is grown of, I really want to add to the list configured in the build script and not replace the values. |
Update. |
I guess it does not yet, hence the comment here to maybe add it while adding support for ListPropery and SetProperty. :-) Btw. I agree with @big-guy, that a "pitest" prefix for the options should not be used. |
I think the first step would be to make this work the same way as a regular @Vampire could you open an issue (if you haven't already) for allowing list options to append? Some examples for where you'd like to use it would be helpful. |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
It is still relevant. |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
BREAKING CHANGE: remove the `--compileItem` command line option. I switched from `Property<String>` -> `ListProperty<String>` to support multiple compile items. Unfortunately but understandably, Gradle does not support (multiple) command line options with the `ListProperty` (type)[gradle/gradle#10517]. In the end, the core input format of Gradle is not command line arguments but a `build.gradle`.
BREAKING CHANGE: remove the `--compileItem` command line option. I switched from `Property<String>` -> `ListProperty<String>` to support multiple compile items. Unfortunately but understandably, Gradle does not support (multiple) command line options with the `ListProperty` [type](gradle/gradle#10517). In the end, the core input format of Gradle is not command line arguments but a `build.gradle`.
BREAKING CHANGE: remove the `--compileItem` command line option. I switched from `Property<String>` -> `ListProperty<String>` to support multiple compile items. Unfortunately but understandably, Gradle does not support (multiple) command line options with the `ListProperty` [type](gradle/gradle#10517). In the end, the core input format of Gradle is not command line arguments but a `build.gradle`.
* feat!: support multiple compile items in compileFrege task BREAKING CHANGE: remove the `--compileItem` command line option. I switched from `Property<String>` -> `ListProperty<String>` to support multiple compile items. Unfortunately but understandably, Gradle does not support (multiple) command line options with the `ListProperty` [type](gradle/gradle#10517). In the end, the core input format of Gradle is not command line arguments but a `build.gradle`. * chore: update readme * refactor: extract common logic to `filterFilesBySuffix` function * chore: add *repl should only compile the specified repl module and its dependencies* test Before, the repl task compiled all frege files and failed if you had errors in other frege files.
Looks like the behavior changed somewhat, but it still doesn't work as expected. From duplicate issue #25097: Expected BehaviorIt is possible to annotation a JavaBean property of type Current Behavior (optional)Currently an error is thrown if
ContextWhen migrating eager multi-valued properties from |
…e ListProperty and SetProperty <!--- The issue this PR addresses --> Fixes #10517 Co-authored-by: Julia Boes <jboes@gradle.com>
Expected Behavior
@Option
should be possible to use withfinal ListProperty/SetProperty<>
fields (as it was implemented by @adammurdoch forProperty<>
in #7977).Current Behavior
gives:
Context
After migration from
List<>
and conventionMapping toPropertyList<>
(orPropertySet<>
) it is no longer possible to use@Option
to set/override values.Steps to Reproduce
Try to set value with
@Option
forfinal ListProperty<>
/final SetProperty<>
fileds.Your Environment
Gradle 5.6.1.
The text was updated successfully, but these errors were encountered: