Skip to content

Commit

Permalink
Add support for bzlmod (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
adincebic authored May 18, 2024
1 parent d6109e6 commit ddbd32c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
common --noenable_bzlmod
# Disabled until bugs are fixed
common --lockfile_mode=off
18 changes: 18 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module(
name = "bazel_sonarqube",
version = "1.0.0",
compatibility_level = 1,
repo_name = "bazel_sonarqube",
)

bazel_dep(name = "bazel_skylib", version = "1.0.3", repo_name = "bazel_skylib")

bazel_dep(
name = "stardoc",
version = "0.6.2",
dev_dependency = True,
repo_name = "io_bazel_stardoc",
)

non_module_dependencies = use_extension("//:extensions.bzl", "non_module_dependencies")
use_repo(non_module_dependencies, "bazel_version", "org_sonarsource_scanner_cli_sonar_scanner_cli")
8 changes: 8 additions & 0 deletions extensions.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
load("//:repositories.bzl", "bazel_sonarqube_repositories")

def _non_module_dependencies_impl(_ctx):
bazel_sonarqube_repositories()

non_module_dependencies = module_extension(
implementation = _non_module_dependencies_impl,
)

0 comments on commit ddbd32c

Please sign in to comment.