Skip to content
Discussion options

You must be logged in to vote

@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))
  }
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mikybars
Comment options

@mikybars
Comment options

@lefou
Comment options

lefou Aug 5, 2025
Maintainer

@lostiniceland
Comment options

@mikybars
Comment options

Answer selected by mikybars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #5297 on June 12, 2025 12:59.