Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 69416c4

Browse files
committed
compile generated api
1 parent fedaa11 commit 69416c4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,15 @@ generatrSpring {
4949
// show warnings from the open api parser.
5050
showWarnings = true
5151
}
52+
53+
sourceSets {
54+
main {
55+
java {
56+
// add generated files
57+
srcDir 'build/openapi'
58+
}
59+
}
60+
}
61+
62+
// generate api before compiling
63+
classes.dependsOn ('generateSpringApi')

0 commit comments

Comments
 (0)