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').
Please help us to resolve this issue as it is a critical issue for us.
Thanks in Advance.
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.