Skip to content

Commit a0fe080

Browse files
committed
Merge ApiClients
1 parent 05b9d9e commit a0fe080

6 files changed

Lines changed: 118 additions & 963 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,6 @@ public void processOpts() {
489489
authFolder = (sourceFolder + '/' + invokerPackage + ".auth").replace(".", "/");
490490

491491
//Common files
492-
if (useSpring7) {
493-
supportingFiles.add(new SupportingFile("ApiClient-s7.mustache", invokerFolder, "ApiClient.java"));
494-
} else {
495-
supportingFiles.add(new SupportingFile("ApiClient.mustache", invokerFolder, "ApiClient.java"));
496-
}
497492
supportingFiles.add(new SupportingFile("pom.mustache", "", "pom.xml").doNotOverwrite());
498493
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md").doNotOverwrite());
499494
supportingFiles.add(new SupportingFile("build.gradle.mustache", "", "build.gradle").doNotOverwrite());
@@ -502,6 +497,7 @@ public void processOpts() {
502497
supportingFiles.add(new SupportingFile("gradle.properties.mustache", "", "gradle.properties").doNotOverwrite());
503498
supportingFiles.add(new SupportingFile("manifest.mustache", projectFolder, "AndroidManifest.xml").doNotOverwrite());
504499
supportingFiles.add(new SupportingFile("travis.mustache", "", ".travis.yml"));
500+
supportingFiles.add(new SupportingFile("ApiClient.mustache", invokerFolder, "ApiClient.java"));
505501
supportingFiles.add(new SupportingFile("ServerConfiguration.mustache", invokerFolder, "ServerConfiguration.java"));
506502
supportingFiles.add(new SupportingFile("ServerVariable.mustache", invokerFolder, "ServerVariable.java"));
507503
supportingFiles.add(new SupportingFile("maven.yml.mustache", ".github/workflows", "maven.yml"));

0 commit comments

Comments
 (0)