You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: expediagroup-sdk-openapi-plugin/src/main/kotlin/com/expediagroup/sdk/openapigenerator/task/GenerateEgSdkTask.kt
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,10 @@ abstract class GenerateEgSdkTask : DefaultTask() {
107
107
108
108
@TaskAction
109
109
fungenerate() {
110
-
val supportingFilesNames = supportingTemplates.get().joinToString(",") { it.fileName }
110
+
val supportingFilesNames = supportingTemplates.orNull
111
+
?.joinToString(",") { it.fileName }
112
+
.orEmpty()
113
+
.ifEmpty { "false" }
111
114
112
115
val config =
113
116
CodegenConfigurator().apply {
@@ -171,7 +174,7 @@ abstract class GenerateEgSdkTask : DefaultTask() {
171
174
template.fileNameSuffix
172
175
).also { t -> t.templateType =TemplateFileType.API }
173
176
}
174
-
}?: emptyList()
177
+
}
175
178
176
179
val resolvedSupportingTemplates =
177
180
supportingTemplates.orNull?.let {
@@ -182,12 +185,12 @@ abstract class GenerateEgSdkTask : DefaultTask() {
0 commit comments