Skip to content

Commit c84252e

Browse files
author
Oleksandr Dzhychko
authored
Merge pull request #1043 from modelix/build/declare-redocly-config-as-input-file
build: do not cache output of Redocly if configuration changes
2 parents 9a0cc23 + 45b80be commit c84252e

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)