diff --git a/src/main/kotlin/io/cloudflight/gradle/autoconfigure/swagger/SwaggerCodegenConfigurePlugin.kt b/src/main/kotlin/io/cloudflight/gradle/autoconfigure/swagger/SwaggerCodegenConfigurePlugin.kt index e23f5cd..636eb2d 100644 --- a/src/main/kotlin/io/cloudflight/gradle/autoconfigure/swagger/SwaggerCodegenConfigurePlugin.kt +++ b/src/main/kotlin/io/cloudflight/gradle/autoconfigure/swagger/SwaggerCodegenConfigurePlugin.kt @@ -218,7 +218,7 @@ class SwaggerCodegenConfigurePlugin : Plugin { generateSwaggerCode.inputs.file(apiDescriptor.swaggerPath!!) generateSwaggerCode.outputs.dir(it.code.outputDir) - clean.doFirst { t -> + clean.doFirst { _ -> project.delete(it.code.outputDir) } } @@ -320,4 +320,4 @@ class SwaggerCodegenConfigurePlugin : Plugin { private val LOG = Logging.getLogger("io.cloudflight.gradle.swagger") } -} \ No newline at end of file +} diff --git a/src/main/kotlin/io/cloudflight/gradle/autoconfigure/util/PublicationSupport.kt b/src/main/kotlin/io/cloudflight/gradle/autoconfigure/util/PublicationSupport.kt index 10a90da..5da748d 100644 --- a/src/main/kotlin/io/cloudflight/gradle/autoconfigure/util/PublicationSupport.kt +++ b/src/main/kotlin/io/cloudflight/gradle/autoconfigure/util/PublicationSupport.kt @@ -35,8 +35,8 @@ internal fun addApiDocumentationPublication( basename: Provider, format: Provider ): PublishArtifact { - val fileName = basename.zip(format) { name, format -> - "${name}.${format.extension}" + val fileName = basename.zip(format) { name, f -> + "${name}.${f.extension}" } return artifacts.add(