Skip to content

Commit f37bfbb

Browse files
committed
Add some missing common files.
1 parent a3b34b5 commit f37bfbb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public void processOpts() {
160160
setDateLibrary(additionalProperties.get(DATE_LIBRARY).toString());
161161
}
162162

163+
commonSupportingFiles();
164+
163165
switch (getLibrary()) {
164166
case JVM_OKHTTP3:
165167
case JVM_OKHTTP4:
@@ -326,15 +328,18 @@ private void processMultiplatformLibrary(final String infrastructureFolder) {
326328

327329

328330
private void commonJvmMultiplatformSupportingFiles(String infrastructureFolder) {
329-
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
330-
supportingFiles.add(new SupportingFile("build.gradle.mustache", "", "build.gradle"));
331-
supportingFiles.add(new SupportingFile("settings.gradle.mustache", "", "settings.gradle"));
332331
supportingFiles.add(new SupportingFile("infrastructure/ApiClient.kt.mustache", infrastructureFolder, "ApiClient.kt"));
333332
supportingFiles.add(new SupportingFile("infrastructure/ApiAbstractions.kt.mustache", infrastructureFolder, "ApiAbstractions.kt"));
334333
supportingFiles.add(new SupportingFile("infrastructure/RequestConfig.kt.mustache", infrastructureFolder, "RequestConfig.kt"));
335334
supportingFiles.add(new SupportingFile("infrastructure/RequestMethod.kt.mustache", infrastructureFolder, "RequestMethod.kt"));
336335
}
337336

337+
private void commonSupportingFiles() {
338+
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
339+
supportingFiles.add(new SupportingFile("build.gradle.mustache", "", "build.gradle"));
340+
supportingFiles.add(new SupportingFile("settings.gradle.mustache", "", "settings.gradle"));
341+
}
342+
338343
@Override
339344
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
340345
Map<String, Object> objects = super.postProcessModels(objs);

0 commit comments

Comments
 (0)