diff --git a/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks/ResolveTask.java b/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks/ResolveTask.java index 07f812b564..b6b11c3198 100644 --- a/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks/ResolveTask.java +++ b/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks/ResolveTask.java @@ -131,7 +131,7 @@ public enum Format {JSON, YAML, JSONANDYAML} @Input @Optional - private String openAPIVersion; + private Property openAPIVersion = getProject().getObjects().property(String.class);; @Input @Optional