Skip to content

Commit

Permalink
Migrate Flogger from WORKSPACE to Bzlmod and bump bazel version to 7.…
Browse files Browse the repository at this point in the history
…3.1.

Fixes #387.

RELNOTES=n/a
PiperOrigin-RevId: 681581084
  • Loading branch information
chaoren authored and Flogger Team committed Oct 4, 2024
1 parent f07e740 commit 43229cf
Show file tree
Hide file tree
Showing 7 changed files with 651 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.2
7.3.1
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: ~/.cache/bazel/*/*/external
key: bazel-${{ hashFiles('WORKSPACE') }}
key: bazel-${{ hashFiles('MODULE.bazel') }}
restore-keys: |
bazel-
- name: 'Set up JDK ${{ matrix.java }}'
Expand Down
21 changes: 21 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2024 The Flogger Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

bazel_dep(name = "rules_java", version = "7.12.1")
bazel_dep(name = "google_bazel_common")
git_override(
module_name = "google_bazel_common",
commit = "e2204d625d97dda88112af0b0a9e56ed7712d15c",
remote = "https://github.com/google/bazel-common",
)
Loading

0 comments on commit 43229cf

Please sign in to comment.