How can I change the OutputDirectory when running 'generate' tasks from Gradle? #11493
Unanswered
trungqudinh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, I am trying to generate the server files from the OpenAPI specification. The default
outputDirectory
is set to$buildDir/generated/openapi + taskName
, so I have to manually copy the files to my own destination directory. Is it possible to configure this path in thebuild.gradle
file?It seems this is hardcoded in
openapi-plugin/src/main/java/io/micronaut/gradle/openapi/DefaultOpenApiExtension.java
:Second, I prefer to keep the necessary generated files in the repository and generate them manually whenever I want. However, when using
gradle build
, the generate tasks always run. How can I disable this behavior?Beta Was this translation helpful? Give feedback.
All reactions