Skip to content
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

Cannot use optional primitives #17

Open
NikolayMetchev opened this issue Oct 18, 2022 · 0 comments
Open

Cannot use optional primitives #17

NikolayMetchev opened this issue Oct 18, 2022 · 0 comments

Comments

@NikolayMetchev
Copy link

I am trying to use the plugin but I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':services:swift:file-transfer-service:publishFtsUploadTask' (type 'S3Upload').
  - In plugin 'io.jumpco.open.gradle.s3' type 'io.jumpco.open.gradle.s3.S3Upload' property 'batchSize' of type int shouldn't be annotated with @Optional.
    
    Reason: Properties of primitive type cannot be optional.
    
    Possible solutions:
      1. Remove the @Optional annotation.
      2. Use the java.lang.Integer type instead.
    
    Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant