openapi-generator-bazel
openapi-generator-bazel copied to clipboard
Install instructions need to be updated for v0.1.7
Just getting started with this repo, and excited to use it!
Just a note that the directions in the README have a few problems:
- Incorrect SHA
- References to
openapi_tools_generator_bazel_repositorieswhich were removed in v0.1.7
I got the following to work after some trial and error:
http_archive(
name = "openapi_tools_generator_bazel",
sha256 = "218f8017c165a325a8a39f53133a991059055df296ad4375fe537fe838b11bb0",
urls = ["https://github.com/OpenAPITools/openapi-generator-bazel/releases/download/v0.1.7/openapi-tools-generator-bazel-0.1.7.tar.gz"],
)
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")
jvm_maven_import_external(
name = "openapi_tools_generator_bazel_cli",
artifact_sha256 = "1cf0c80de12c0fdc8594289c19e414b402108ef10b8dd0bfda1953151341ab5d",
artifact = "org.openapitools:openapi-generator-cli:7.2.0",
server_urls = ["https://repo1.maven.org/maven2"],
)
Thanks!
Hello and welcome! I'm glad you are excited - I am too.
I'm sorry the README was confusing. We are in the process of upgrading to use bzlmod and to register this package in the bazel central registry. The README has therefore gotten a little behind as we pull all the pieces together. Here is a PR with updated README instructions, but those won't work yet until we register this package.
fixed in the latest master.
please check