File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ tasks.named("pnpmInstall") {
23
23
24
24
tasks. register(' generateContract' , PnpmTask ) {
25
25
dependsOn pnpmInstall
26
+ if (useTypeSpec) {
27
+ dependsOn " :contract-typespec:build"
28
+ inputs. files(project(" :contract-typespec" ). layout. buildDirectory. dir(" tsp/api/openapi.yaml" ))
29
+ } else {
30
+ inputs. files(fileTree(" ../contract/src/main/resources" ))
31
+ }
26
32
inputs. files(fileTree(" ../contract/src/main/resources" ))
27
33
outputs. dir(project. layout. projectDirectory. dir(" src/generated-sources" ))
28
34
args = [' gen:sources' ]
Original file line number Diff line number Diff line change 7
7
"fetch" : {
8
8
"generatorName" : " typescript-fetch" ,
9
9
"output" : " src/generated-sources" ,
10
- "glob" : " ../contract/src/main/resources/swagger/kafbat-ui- api.yaml" ,
10
+ "glob" : " ../contract-typespec/build/tsp/ api/openapi .yaml" ,
11
11
"additionalProperties" : {
12
12
"enumPropertyNaming" : " UPPERCASE" ,
13
13
"typescriptThreePlus" : true ,
You can’t perform that action at this time.
0 commit comments