From ffbbc853286dc4cd489585cb95ab028db9ba751d Mon Sep 17 00:00:00 2001 From: anna-skrodzka Date: Fri, 25 Oct 2024 13:09:11 +0200 Subject: [PATCH] init.bzl modified --- rules/scala/init.bzl | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/rules/scala/init.bzl b/rules/scala/init.bzl index 31296853..4008504a 100644 --- a/rules/scala/init.bzl +++ b/rules/scala/init.bzl @@ -1,9 +1,25 @@ +load("@bazel_features//:deps.bzl", "bazel_features_deps") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains") +load("//3rdparty:workspace.bzl", "maven_dependencies") +load("//rules/scala_proto/3rdparty:workspace.bzl", maven_dependencies_scala_proto = "maven_dependencies") +load("//rules/scalafmt:config.bzl", "scalafmt_default_config") +load("//rules/scalafmt/3rdparty:workspace.bzl", maven_dependencies_scalafmt = "maven_dependencies") +load("//scala/3rdparty:workspace.bzl", maven_dependencies_scala = "maven_dependencies") + +def load_maven_dependencies(): + maven_dependencies() + maven_dependencies_scala_proto() + maven_dependencies_scalafmt() + maven_dependencies_scala() def rules_scala3_init(): protobuf_deps() - rules_proto_dependencies() rules_proto_toolchains() + + bazel_features_deps() + + load_maven_dependencies() + scalafmt_default_config(".scalafmt.conf")