Skip to content

Commit

Permalink
prepare workspace.bzl to external use
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-skrodzka committed Oct 25, 2024
1 parent 569c566 commit 8f6f268
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rules/scala/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit 8f6f268

Please sign in to comment.