Skip to content

Commit 092be5c

Browse files
authored
Update bazel modules (#38)
Also fixes a copyright header formatting issue
1 parent 1552d9d commit 092be5c

2 files changed

Lines changed: 30 additions & 21 deletions

File tree

MODULE.bazel

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,39 @@ module(
1515
version = "1.0",
1616
)
1717

18-
bazel_dep(name = "rules_python", version = "1.4.1")
18+
bazel_dep(name = "rules_python", version = "1.4.1", dev_dependency = True)
1919

20+
# Python 3.12: Required for testing infrastructure and code generation tools
2021
PYTHON_VERSION = "3.12"
2122

22-
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
23+
python = use_extension(
24+
"@rules_python//python/extensions:python.bzl",
25+
"python",
26+
dev_dependency = True,
27+
)
2328
python.toolchain(
2429
is_default = True,
2530
python_version = PYTHON_VERSION,
2631
)
2732
use_repo(python)
2833

2934
# Add GoogleTest dependency
30-
bazel_dep(name = "googletest", version = "1.17.0")
35+
bazel_dep(name = "googletest", version = "1.17.0", dev_dependency = True)
3136

3237
# Rust rules for Bazel
3338
bazel_dep(name = "rules_rust", version = "0.63.0")
3439

3540
# C/C++ rules for Bazel
36-
bazel_dep(name = "rules_cc", version = "0.2.1")
41+
bazel_dep(name = "rules_cc", version = "0.2.14")
3742

3843
# LLVM Toolchains Rules - host configuration
39-
bazel_dep(name = "toolchains_llvm", version = "1.4.0")
44+
bazel_dep(name = "toolchains_llvm", version = "1.5.0", dev_dependency = True)
4045

41-
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
46+
llvm = use_extension(
47+
"@toolchains_llvm//toolchain/extensions:llvm.bzl",
48+
"llvm",
49+
dev_dependency = True,
50+
)
4251
llvm.toolchain(
4352
cxx_standard = {"": "c++17"},
4453
llvm_version = "19.1.0",
@@ -49,9 +58,9 @@ use_repo(llvm, "llvm_toolchain_llvm")
4958
register_toolchains("@llvm_toolchain//:all")
5059

5160
# tooling
52-
bazel_dep(name = "score_tooling", version = "1.0.1")
53-
bazel_dep(name = "aspect_rules_lint", version = "1.5.3")
54-
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2")
61+
bazel_dep(name = "score_tooling", version = "1.0.4", dev_dependency = True)
62+
bazel_dep(name = "aspect_rules_lint", version = "1.10.2", dev_dependency = True)
63+
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)
5564

5665
#docs-as-code
57-
bazel_dep(name = "score_docs_as_code", version = "1.1.0")
66+
bazel_dep(name = "score_docs_as_code", version = "2.3.0", dev_dependency = True)

tests/cpp/test_main.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/********************************************************************************
2-
* Copyright (c) 2025 Contributors to the Eclipse Foundation
3-
*
4-
* See the NOTICE file(s) distributed with this work for additional
5-
* information regarding copyright ownership.
6-
*
7-
* This program and the accompanying materials are made available under the
8-
* terms of the Apache License Version 2.0 which is available at
9-
* https://www.apache.org/licenses/LICENSE-2.0
10-
*
11-
* SPDX-License-Identifier: Apache-2.0
12-
********************************************************************************/
2+
* Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
1313
#include <gtest/gtest.h>
1414

1515
// Function to be tested

0 commit comments

Comments
 (0)