We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Team, Here the below plugin added in my build.gradle:
plugins { id "io.swagger.swaggerhub" version "1.0.1" }
swaggerhubUpload { api 'PetStoreAPI' owner 'rajeshkommuri' version '1.0.1-SNAPSHOT' inputFile 'target/petStoreAPI.json' token 'XXXXXXXX'
}
We ran this in JDK8 and JDK11,
JSON file is getting generated using java code.
It is not giving any error when we ran with gradle 6.X and not uploading anything as well.
It is giving the below error message when we ran with Gradle 7.0
A problem was found with the configuration of task ':swaggerhubUpload' (type 'UploadTask').
Type 'UploadTask' property 'port' of type int shouldn't be annotated with @optional.
Reason: Properties of primitive type cannot be optional.
Possible solutions:
Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.
Please help us to resolve this issue as it is a critical issue for us.
Thanks in Advance.
The text was updated successfully, but these errors were encountered:
PR is here #11
Sorry, something went wrong.
No branches or pull requests
Hi Team,
Here the below plugin added in my build.gradle:
plugins {
id "io.swagger.swaggerhub" version "1.0.1"
}
swaggerhubUpload {
api 'PetStoreAPI'
owner 'rajeshkommuri'
version '1.0.1-SNAPSHOT'
inputFile 'target/petStoreAPI.json'
token 'XXXXXXXX'
}
We ran this in JDK8 and JDK11,
JSON file is getting generated using java code.
It is not giving any error when we ran with gradle 6.X and not uploading anything as well.
It is giving the below error message when we ran with Gradle 7.0
A problem was found with the configuration of task ':swaggerhubUpload' (type 'UploadTask').
Type 'UploadTask' property 'port' of type int shouldn't be annotated with @optional.
Reason: Properties of primitive type cannot be optional.
Possible solutions:
Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.
Please help us to resolve this issue as it is a critical issue for us.
Thanks in Advance.
The text was updated successfully, but these errors were encountered: