Skip to content

Commit cff50ab

Browse files
committed
Revert build changes
1 parent cbbd49a commit cff50ab

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

api/polaris-catalog-service/build.gradle.kts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
* under the License.
1818
*/
1919

20-
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
21-
2220
plugins {
2321
alias(libs.plugins.openapi.generator)
2422
id("polaris-client")
@@ -75,8 +73,7 @@ dependencies {
7573
implementation("com.fasterxml.jackson.core:jackson-databind")
7674
}
7775

78-
tasks.named<GenerateTask>("openApiGenerate") {
79-
doFirst { delete(fileTree("$projectDir/build/generated")) }
76+
openApiGenerate {
8077
inputSpec = "$rootDir/spec/polaris-catalog-service.yaml"
8178
generatorName = "jaxrs-resteasy"
8279
outputDir = "$projectDir/build/generated"
@@ -85,11 +82,10 @@ tasks.named<GenerateTask>("openApiGenerate") {
8582
ignoreFileOverride = "$rootDir/.openapi-generator-ignore"
8683
removeOperationIdPrefix = true
8784
templateDir = "$rootDir/server-templates"
88-
globalProperties.put("apis", "true")
89-
globalProperties.put("models", "true")
90-
globalProperties.put("apiDocs", "true")
91-
globalProperties.put("modelTests", "true")
92-
globalProperties.put("supportingFiles", "true")
85+
globalProperties.put("apis", "GenericTableApi,PolicyApi")
86+
globalProperties.put("models", models)
87+
globalProperties.put("apiDocs", "false")
88+
globalProperties.put("modelTests", "false")
9389
configOptions.put("resourceName", "catalog")
9490
configOptions.put("useTags", "true")
9591
configOptions.put("useBeanValidation", "false")

0 commit comments

Comments
 (0)