From 8f6f268782dae83e24dc1ae985793b19928d9caa Mon Sep 17 00:00:00 2001 From: anna-skrodzka Date: Fri, 25 Oct 2024 16:48:32 +0200 Subject: [PATCH] prepare workspace.bzl to external use --- rules/scala/workspace.bzl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rules/scala/workspace.bzl b/rules/scala/workspace.bzl index b7f6efa7..2130ae3b 100644 --- a/rules/scala/workspace.bzl +++ b/rules/scala/workspace.bzl @@ -24,6 +24,12 @@ filegroup( ) """ +_ANNEX_DEPS_ARTIFACTS = [ + "com.github.scopt:scopt_3:4.1.0", + "org.scala-sbt:librarymanagement-core_3:2.0.0-M2", + "org.scala-sbt:librarymanagement-coursier_3:2.0.0-alpha8", +] + repositories = [ "https://repo1.maven.org/maven2", "https://repo.maven.apache.org/maven2", @@ -36,6 +42,14 @@ sbt_version = "2.0.0-M2" zinc_version = "2.0.0-alpha14" def scala_repositories(): + maven_install( + name = "annex_deps", + artifacts = _ANNEX_DEPS_ARTIFACTS, + fetch_sources = True, + maven_install_json = "@rules_scala3//:annex_deps_install.json", + repositories = repositories, + ) + http_archive( name = "compiler_bridge_2_13", build_file_content = _SRC_FILEGROUP_BUILD_FILE_CONTENT,