Skip to content

Commit 45b80be

Browse files
author
Oleksandr Dzhychko
committed
build: do not cache output of Redocly if configuration changes
1 parent 4452146 commit 45b80be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model-server-openapi/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ val bundleSpecs = tasks.register<NpxTask>("bundleSpecs") {
1919

2020
dependsOn(tasks.getByName("npmInstall"))
2121

22-
inputs.file("package-lock.json")
22+
inputs.files("package-lock.json", "redocly.yaml")
2323
inputs.dir(specDir)
2424

2525
outputs.cacheIf { true }
@@ -36,7 +36,7 @@ val joinSpecs = tasks.register<NpxTask>("joinSpecs") {
3636
dependsOn(tasks.getByName("npmInstall"))
3737
dependsOn(bundleSpecs)
3838

39-
inputs.file("package-lock.json")
39+
inputs.files("package-lock.json", "redocly.yaml")
4040
inputs.dir(bundleDir)
4141

4242
outputs.cacheIf { true }

0 commit comments

Comments
 (0)