diff --git a/metadata-io/build.gradle b/metadata-io/build.gradle index 98b741b6f51a62..ae56cd4cb8a965 100644 --- a/metadata-io/build.gradle +++ b/metadata-io/build.gradle @@ -136,3 +136,7 @@ sourceSets.main.java.srcDir "${generateOpenApiPojos.outputDir}/src/main/java" sourceSets.main.resources.srcDir "${generateOpenApiPojos.outputDir}/src/main/resources" checkstyleMain.exclude '**/generated/**' + +clean { + project.delete("$projectDir/generated") +} \ No newline at end of file diff --git a/metadata-models/build.gradle b/metadata-models/build.gradle index 26b9be6acbb890..432823852a2637 100644 --- a/metadata-models/build.gradle +++ b/metadata-models/build.gradle @@ -37,3 +37,7 @@ tasks.register('generateJsonSchema', GenerateJsonSchemaTask) { it.setOutputDirectory("$projectDir/src/generatedJsonSchema") dependsOn generateAvroSchema } + +clean { + project.delete("$projectDir/src/generatedJsonSchema") +} \ No newline at end of file