-
-
Notifications
You must be signed in to change notification settings - Fork 286
Scala 2.12 support #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scala 2.12 support #300
Changes from all commits
705032d
e4276a9
30c0bdc
c23c422
18c54ee
cd4d3d6
bca505c
055b33e
55fd807
a2895c1
31e8e1f
5ef84d9
1c8cb77
f903c9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
java_library(name = "transitive_scalatest", exports = ["@scalatest//jar", "@scalactic//jar"]) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_scalapb_plugin", | ||
artifact = "com.trueaccord.scalapb:compilerplugin_2.11:0.6.5", | ||
sha1 = "290094c632c95b36b6f66d7dbfdc15242b9a247f", | ||
artifact = "com.trueaccord.scalapb:compilerplugin_2.12:0.6.5", | ||
sha1 = "d119bb24e976dacae8f55a678a027d59bc50ffac", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
@@ -33,8 +33,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_protoc_bridge", | ||
artifact = "com.trueaccord.scalapb:protoc-bridge_2.11:0.3.0-M1", | ||
sha1 = "73d38f045ea8f09cc1264991d1064add6eac9e00", | ||
artifact = "com.trueaccord.scalapb:protoc-bridge_2.12:0.3.0-M1", | ||
sha1 = "1de84a8176cf0192b68b2873364e26cb4da61a7a", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
@@ -45,8 +45,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_scalapbc", | ||
artifact = "com.trueaccord.scalapb:scalapbc_2.11:0.6.5", | ||
sha1 = "b204d6d56a042b973af5b6fe28f81ece232d1fe4", | ||
artifact = "com.trueaccord.scalapb:scalapbc_2.12:0.6.5", | ||
sha1 = "7dd00d1d5b03be9879194bf917738d69b0126fab", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
@@ -57,8 +57,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_scalapb_runtime", | ||
artifact = "com.trueaccord.scalapb:scalapb-runtime_2.11:0.6.5", | ||
sha1 = "ac9287ff48c632df525773570ee4842e3ddf40e9", | ||
artifact = "com.trueaccord.scalapb:scalapb-runtime_2.12:0.6.5", | ||
sha1 = "5375ad64f0cc26b8e8a9377811f9b97645d24bac", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
@@ -69,8 +69,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_scalapb_runtime_grpc", | ||
artifact = "com.trueaccord.scalapb:scalapb-runtime-grpc_2.11:0.6.5", | ||
sha1 = "9dc3374001f4190548db36a7dc87bd4f9bca6f9c", | ||
artifact = "com.trueaccord.scalapb:scalapb-runtime-grpc_2.12:0.6.5", | ||
sha1 = "64885c5d96be6ecdfccdb27ca2bdef3ed9ce9fb4", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
@@ -81,8 +81,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_scalapb_lenses", | ||
artifact = "com.trueaccord.lenses:lenses_2.11:0.4.12", | ||
sha1 = "c5fbf5b872ce99d9a16d3392ccc0d15a0e43d823", | ||
artifact = "com.trueaccord.lenses:lenses_2.12:0.4.12", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we used |
||
sha1 = "d97d2958814bcfe2f19e1ed2f0f03fd9da5a3961", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
@@ -93,8 +93,8 @@ def scala_proto_repositories(): | |
|
||
native.maven_jar( | ||
name = "scala_proto_rules_scalapb_fastparse", | ||
artifact = "com.lihaoyi:fastparse_2.11:0.4.4", | ||
sha1 = "f065fe0afe6fd2b4557d985c37362c36f08f9947", | ||
artifact = "com.lihaoyi:fastparse_2.12:0.4.4", | ||
sha1 = "aaf2048f9c6223220eac28c9b6a442f27ba83c55", | ||
server = "scala_proto_deps_maven_server", | ||
) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,36 +4,36 @@ def specs2_repositories(): | |
|
||
native.maven_jar( | ||
name = "io_bazel_rules_scala_org_specs2_specs2_core", | ||
artifact = "org.specs2:specs2-core_2.11:" + specs2_version(), | ||
sha1 = "495bed00c73483f4f5f43945fde63c615d03e637", | ||
artifact = "org.specs2:specs2-core_2.12:" + specs2_version(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I went wholesale on this in #303 |
||
sha1 = "86cb72427e64e1423edcbf082e8767a60493bbcc", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/specs2/specs2_core', actual = '@io_bazel_rules_scala_org_specs2_specs2_core//jar') | ||
|
||
native.maven_jar( | ||
name = "io_bazel_rules_scala_org_specs2_specs2_common", | ||
artifact = "org.specs2:specs2-common_2.11:" + specs2_version(), | ||
sha1 = "15bc009eaae3a574796c0f558d8696b57ae903c3", | ||
artifact = "org.specs2:specs2-common_2.12:" + specs2_version(), | ||
sha1 = "83bd14fb54f81a886901fa7ed136bcf887322440", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/specs2/specs2_common', actual = '@io_bazel_rules_scala_org_specs2_specs2_common//jar') | ||
|
||
native.maven_jar( | ||
name = "io_bazel_rules_scala_org_specs2_specs2_matcher", | ||
artifact = "org.specs2:specs2-matcher_2.11:" + specs2_version(), | ||
sha1 = "d2e967737abef7421e47b8994a8c92784e624d62", | ||
artifact = "org.specs2:specs2-matcher_2.12:" + specs2_version(), | ||
sha1 = "921d9ef6bf98c3e5a59d535e1139b5522625d6ba", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/specs2/specs2_matcher', actual = '@io_bazel_rules_scala_org_specs2_specs2_matcher//jar') | ||
|
||
native.maven_jar( | ||
name = "io_bazel_rules_scala_org_scalaz_scalaz_effect", | ||
artifact = "org.scalaz:scalaz-effect_2.11:7.2.7", | ||
sha1 = "824bbb83da12224b3537c354c51eb3da72c435b5", | ||
artifact = "org.scalaz:scalaz-effect_2.12:7.2.7", | ||
sha1 = "5d0bbd74323d8c7467cde95dcdc298eb3d9dcdb1", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/scalaz/scalaz_effect', actual = '@io_bazel_rules_scala_org_scalaz_scalaz_effect//jar') | ||
|
||
native.maven_jar( | ||
name = "io_bazel_rules_scala_org_scalaz_scalaz_core", | ||
artifact = "org.scalaz:scalaz-core_2.11:7.2.7", | ||
sha1 = "ebf85118d0bf4ce18acebf1d8475ee7deb7f19f1", | ||
artifact = "org.scalaz:scalaz-core_2.12:7.2.7", | ||
sha1 = "ee06c07e856bad6ce112b2a5b96e1df1609ad57f", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/scalaz/scalaz_core', actual = '@io_bazel_rules_scala_org_scalaz_scalaz_core//jar') | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,12 @@ java_binary( | |
"ScalacProcessor.java", | ||
], | ||
main_class = "io.bazel.rulesscala.scalac.ScalaCInvoker", | ||
# this probably should be set globally for the entire rules_scala | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this needs to be in the scala.bzl? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a pattern of enforcing minimal Java version on clients of the rule? |
||
# but I don't know how to do it | ||
javacopts = [ | ||
"-source 1.8", | ||
"-target 1.8" | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//src/java/com/google/devtools/build/lib:worker", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ load("//scala:scala.bzl", | |
def twitter_scrooge(): | ||
native.maven_server( | ||
name = "twitter_scrooge_maven_server", | ||
url = "http://mirror.bazel.build/repo1.maven.org/maven2/", | ||
url = "http://repo1.maven.org/maven2/", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why can't we use the Bazel mirror? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i can't remember the reason to switch, switched back |
||
) | ||
|
||
native.maven_jar( | ||
|
@@ -22,33 +22,33 @@ def twitter_scrooge(): | |
|
||
native.maven_jar( | ||
name = "scrooge_core", | ||
artifact = scala_mvn_artifact("com.twitter:scrooge-core:4.6.0"), | ||
sha1 = "84b86c2e082aba6e0c780b3c76281703b891a2c8", | ||
artifact = scala_mvn_artifact("com.twitter:scrooge-core:4.18.0"), | ||
sha1 = "8a10e4da9fd636a8225a5068aa0b57072142a30b", | ||
server = "twitter_scrooge_maven_server", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/thrift/scrooge_core', actual = '@scrooge_core//jar') | ||
|
||
#scrooge-generator related dependencies | ||
native.maven_jar( | ||
name = "scrooge_generator", | ||
artifact = scala_mvn_artifact("com.twitter:scrooge-generator:4.6.0"), | ||
sha1 = "cacf72eedeb5309ca02b2d8325c587198ecaac82", | ||
artifact = scala_mvn_artifact("com.twitter:scrooge-generator:4.18.0"), | ||
sha1 = "d456f18b5c478b6356e2e09f4be4784cd4f05765", | ||
server = "twitter_scrooge_maven_server", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/thrift/scrooge_generator', actual = '@scrooge_generator//jar') | ||
|
||
native.maven_jar( | ||
name = "util_core", | ||
artifact = scala_mvn_artifact("com.twitter:util-core:6.33.0"), | ||
sha1 = "bb49fa66a3ca9b7db8cd764d0b26ce498bbccc83", | ||
artifact = scala_mvn_artifact("com.twitter:util-core:6.45.0"), | ||
sha1 = "d7bbc819d90d06dfd4c76c25b82869b27048c886", | ||
server = "twitter_scrooge_maven_server", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/thrift/util_core', actual = '@util_core//jar') | ||
|
||
native.maven_jar( | ||
name = "util_logging", | ||
artifact = scala_mvn_artifact("com.twitter:util-logging:6.33.0"), | ||
sha1 = "3d28e46f8ee3b7ad1b98a51b98089fc01c9755dd", | ||
artifact = scala_mvn_artifact("com.twitter:util-logging:6.45.0"), | ||
sha1 = "b83552e8980557b5dd767de40db1d44c3a39c400", | ||
server = "twitter_scrooge_maven_server", | ||
) | ||
native.bind(name = 'io_bazel_rules_scala/dependency/thrift/util_logging', actual = '@util_logging//jar') | ||
|
@@ -260,11 +260,13 @@ def scrooge_scala_library(name, deps=[], remote_jars=[], jvm_flags=[], visibilit | |
deps = deps + remote_jars + [ | ||
srcjar, | ||
"//external:io_bazel_rules_scala/dependency/thrift/libthrift", | ||
"//external:io_bazel_rules_scala/dependency/thrift/scrooge_core" | ||
"//external:io_bazel_rules_scala/dependency/thrift/scrooge_core", | ||
"//external:io_bazel_rules_scala/dependency/thrift/util_core", | ||
], | ||
exports = deps + remote_jars + [ | ||
"//external:io_bazel_rules_scala/dependency/thrift/libthrift", | ||
"//external:io_bazel_rules_scala/dependency/thrift/scrooge_core", | ||
"//external:io_bazel_rules_scala/dependency/thrift/util_core", | ||
], | ||
jvm_flags = jvm_flags, | ||
visibility = visibility, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do the version upgrades in master to minimize the diff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#303