Skip to content

Commit

Permalink
Set maven name (#242)
Browse files Browse the repository at this point in the history
This is needed for bcr
  • Loading branch information
tinder-maxwellelliott authored Oct 6, 2024
1 parent 4b81d39 commit 527037c
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 71 deletions.
11 changes: 6 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "bazel-diff",
version = "7.2.13",
version = "7.2.14",
compatibility_level = 0,
)

Expand All @@ -10,8 +10,9 @@ bazel_dep(name = "rules_java", version = "7.6.5")
bazel_dep(name = "rules_kotlin", version = "1.9.1")
bazel_dep(name = "rules_jvm_external", version = "6.0")

bazel_diff_maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
bazel_diff_maven.install(
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
name = "bazel_diff_maven",
artifacts = [
"com.google.code.gson:gson:jar:2.9.0",
"com.google.guava:guava:31.1-jre",
Expand All @@ -27,6 +28,6 @@ bazel_diff_maven.install(
lock_file = "//:maven_install.json",
)
use_repo(
bazel_diff_maven,
bazel_diff_maven = "maven",
maven,
bazel_diff_maven = "bazel_diff_maven",
)
149 changes: 84 additions & 65 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()

load("@rules_jvm_external//:defs.bzl", "maven_install")
load("//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")
load("@rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
load("//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")

kotlin_repositories()

Expand All @@ -55,7 +55,12 @@ kt_register_toolchains()
maven_install(
name = "bazel_diff_maven",
artifacts = BAZEL_DIFF_MAVEN_ARTIFACTS,
maven_install_json = "//:maven_install.json",
repositories = [
"https://repo1.maven.org/maven2/",
],
)

load("@bazel_diff_maven//:defs.bzl", "pinned_maven_install")

pinned_maven_install()

0 comments on commit 527037c

Please sign in to comment.