|
1 | | -# ---------------------------------------------------- |
2 | | -# scala |
3 | | -# ---------------------------------------------------- |
4 | | - |
5 | | -load("@build_stack_rules_proto//deps:scala_deps.bzl", "scala_deps") |
6 | | -load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config") |
7 | | -load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories") |
8 | | -load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains") |
9 | | -load( |
10 | | - "@rules_jvm_external//:defs.bzl", |
11 | | - "maven_install", |
12 | | -) |
13 | | -load("@build_stack_rules_proto//rules/proto:proto_repository.bzl", "proto_repository") |
14 | | - |
15 | | -scala_deps() |
16 | | - |
17 | | -scala_config(scala_version = "2.12.18") |
18 | | - |
19 | | -scala_repositories() |
20 | | - |
21 | | -scala_register_toolchains() |
22 | | - |
23 | | -# ---------------------------------------------------- |
24 | | -# maven |
25 | | -# ---------------------------------------------------- |
26 | | - |
27 | | -maven_install( |
28 | | - name = "maven_scala", |
29 | | - artifacts = [ |
30 | | - "com.thesamet.scalapb:lenses_2.12:0.11.10", |
31 | | - "com.thesamet.scalapb:scalapb-json4s_2.12:0.12.0", |
32 | | - "com.thesamet.scalapb:scalapb-runtime_2.12:0.11.10", |
33 | | - "com.thesamet.scalapb:scalapb-runtime-grpc_2.12:0.11.10", |
34 | | - "com.thesamet.scalapb:scalapbc_2.12:0.11.10", |
35 | | - "org.json4s:json4s-core_2.12:4.0.3", |
36 | | - ], |
37 | | - fetch_sources = True, |
38 | | - repositories = ["https://repo1.maven.org/maven2"], |
39 | | -) |
40 | | - |
41 | | -# ---------------------------------------------------- |
42 | | -# akka |
43 | | -# ---------------------------------------------------- |
44 | | - |
45 | | -maven_install( |
46 | | - name = "maven_akka", |
47 | | - artifacts = [ |
48 | | - "com.lightbend.akka.grpc:akka-grpc-codegen_2.12:2.1.3", |
49 | | - "com.lightbend.akka.grpc:akka-grpc-runtime_2.12:2.1.3", |
50 | | - ], |
51 | | - fetch_sources = True, |
52 | | - repositories = ["https://repo1.maven.org/maven2"], |
53 | | -) |
54 | | - |
55 | | -# ---------------------------------------------------- |
56 | | -# proto_repository |
57 | | -# ---------------------------------------------------- |
58 | | - |
59 | | -proto_repository( |
60 | | - name = "scalaapis", |
61 | | - build_directives = ["gazelle:proto_language scala enabled true"], |
62 | | - build_file_generation = "on", |
63 | | - build_file_proto_mode = "file", |
64 | | - cfgs = ["//:config.yaml"], |
65 | | - sha256 = "1ac039f79b0825fe2e7e5ddf24e330632d63b70a7a42bfd39ded5bb1fb648811", |
66 | | - # the typical importpath is 'scalapb/scalapb.proto', so strip the prefix up |
67 | | - # to that directory. |
68 | | - strip_prefix = "ScalaPB-a4e0e02c0f5b160877d5f97f6902dbec4c633afe/protobuf", |
69 | | - type = "zip", |
70 | | - urls = ["https://codeload.github.com/scalapb/ScalaPB/zip/a4e0e02c0f5b160877d5f97f6902dbec4c633afe"], |
71 | | -) |
0 commit comments