mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
[java-client] WebClient requires java8 (#460)
* Usage of webclient library forces java8 to be true * Run bin/java-petstore-webclient.sh
This commit is contained in:
parent
ef2b372dd3
commit
b0cae23777
@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
package org.openapitools.codegen.languages;
|
package org.openapitools.codegen.languages;
|
||||||
|
|
||||||
|
import static com.google.common.base.CaseFormat.LOWER_CAMEL;
|
||||||
|
import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
|
||||||
|
import static java.util.Collections.sort;
|
||||||
|
|
||||||
import org.apache.commons.lang3.BooleanUtils;
|
import org.apache.commons.lang3.BooleanUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.openapitools.codegen.CliOption;
|
import org.openapitools.codegen.CliOption;
|
||||||
@ -45,10 +49,6 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static com.google.common.base.CaseFormat.LOWER_CAMEL;
|
|
||||||
import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
|
|
||||||
import static java.util.Collections.sort;
|
|
||||||
|
|
||||||
public class JavaClientCodegen extends AbstractJavaCodegen
|
public class JavaClientCodegen extends AbstractJavaCodegen
|
||||||
implements BeanValidationFeatures, PerformBeanValidationFeatures,
|
implements BeanValidationFeatures, PerformBeanValidationFeatures,
|
||||||
GzipFeatures {
|
GzipFeatures {
|
||||||
@ -287,6 +287,8 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
additionalProperties.put("jackson", "true");
|
additionalProperties.put("jackson", "true");
|
||||||
supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
||||||
} else if (WEBCLIENT.equals(getLibrary())) {
|
} else if (WEBCLIENT.equals(getLibrary())) {
|
||||||
|
setJava8Mode(true);
|
||||||
|
additionalProperties.put("java8", "true");
|
||||||
additionalProperties.put("jackson", "true");
|
additionalProperties.put("jackson", "true");
|
||||||
} else if (VERTX.equals(getLibrary())) {
|
} else if (VERTX.equals(getLibrary())) {
|
||||||
typeMapping.put("file", "AsyncFile");
|
typeMapping.put("file", "AsyncFile");
|
||||||
|
@ -12,7 +12,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
|
|||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Building the API client library requires:
|
Building the API client library requires:
|
||||||
1. Java 1.7+
|
1. Java 1.8+
|
||||||
2. Maven/Gradle
|
2. Maven/Gradle
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
Loading…
Reference in New Issue
Block a user