-
I came across Mill a couple of weeks ago and I'm trying to integrate it in a Spring Boot project that currently uses Gradle as build tool with the corresponding Openapi Generator plugin. The thing is I don't know how to replace the My best try so far is generate those Java files from outside the build (java -jar openapi-generator-cli-7.13.0.jar generate...) and configure a custom Can you point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@mikybars you should be able to do something like object foo extends JavaModule{
def openapiYaml = Task.Source("openapi.yaml")
def generator = Task{
os.write(Task.dest / "generator.jar", requests.get("url...to...openapi-generator-cli-7.13.0.jar"))
}
override def generatedSources = Task{
os.call(("java", "-jar", generator().path, openapiYaml().path))
Seq(PathRe(Task.dest))
}
} |
Beta Was this translation helpful? Give feedback.
@mikybars you should be able to do something like