Skip to content

Commit

Permalink
Update scalafmt for 2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaidas Pilkauskas committed Oct 16, 2020
1 parent 9d4d28a commit 5337116
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 40 deletions.
51 changes: 28 additions & 23 deletions scala/scalafmt/scalafmt_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load(
"//scala:scala_cross_version.bzl",
"extract_major_version",
_default_maven_server_urls = "default_maven_server_urls",
_default_scala_version = "default_scala_version",
)
Expand All @@ -18,30 +19,34 @@ def scalafmt_repositories(
scala_version = _default_scala_version(),
maven_servers = _default_maven_server_urls(),
overriden_artifacts = {}):
artifact_ids = [
"org_scalameta_common",
"org_scalameta_fastparse",
"org_scalameta_fastparse_utils",
"org_scalameta_parsers",
"org_scalameta_scalafmt_core",
"org_scalameta_scalameta",
"org_scalameta_trees",
"org_typelevel_paiges_core",
"com_typesafe_config",
"org_scala_lang_scalap",
"com_thesamet_scalapb_lenses",
"com_thesamet_scalapb_scalapb_runtime",
"com_lihaoyi_fansi",
"com_lihaoyi_fastparse",
"org_scalameta_fastparse_utils",
"org_scala_lang_modules_scala_collection_compat",
"com_lihaoyi_pprint",
"com_lihaoyi_sourcecode",
"com_google_protobuf_protobuf_java",
"com_geirsson_metaconfig_core",
"com_geirsson_metaconfig_typesafe_config",
]
if extract_major_version(scala_version) == "2.13":
artifact_ids.append("io_bazel_rules_scala_scala_parallel_collections")

repositories(
for_artifact_ids = [
"org_scalameta_common",
"org_scalameta_fastparse",
"org_scalameta_fastparse_utils",
"org_scalameta_parsers",
"org_scalameta_scalafmt_core",
"org_scalameta_scalameta",
"org_scalameta_trees",
"org_typelevel_paiges_core",
"com_typesafe_config",
"org_scala_lang_scalap",
"com_thesamet_scalapb_lenses",
"com_thesamet_scalapb_scalapb_runtime",
"com_lihaoyi_fansi",
"com_lihaoyi_fastparse",
"org_scalameta_fastparse_utils",
"org_scala_lang_modules_scala_collection_compat",
"com_lihaoyi_pprint",
"com_lihaoyi_sourcecode",
"com_google_protobuf_protobuf_java",
"com_geirsson_metaconfig_core",
"com_geirsson_metaconfig_typesafe_config",
],
for_artifact_ids = artifact_ids,
maven_servers = maven_servers,
fetch_sources = True,
overriden_artifacts = overriden_artifacts,
Expand Down
39 changes: 22 additions & 17 deletions third_party/repositories/scala_2_13.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ artifacts = {
"artifact": "org.scala-lang:scala-reflect:2.13.3",
"sha256": "959dc9ab8aad84e2fc7adacfb84f2ed908caee22c4c2d291dd818f0c40c6ed5b",
},
"io_bazel_rules_scala_scala_parallel_collections": {
"artifact": "org.scala-lang.modules:scala-parallel-collections_2.13:0.2.0",
"sha256": "d15f22f1308b98e9ac52a3d1ac8d582d548d6d852b1116cbdf5a50f431246ed1",
},
#
"io_bazel_rules_scala_scalatest": {
"artifact": "org.scalatest:scalatest_2.13:3.0.9",
Expand All @@ -29,16 +33,16 @@ artifacts = {
"sha256": "5c285b72e6dc0a98e99ae0a1ceeb4027dab9adfa441844046bd3f19e0efdcb54",
},
"org_scalameta_common": {
"artifact": "org.scalameta:common_2.13:4.3.0",
"sha256": "949f508f70f9f685e38f16f1f66e5cc31ad8f308ea96c57bd1686b6af566d7b9",
"artifact": "org.scalameta:common_2.13:4.3.24",
"sha256": "bb8ffbca69b42417aa5d3c73d4434b73dbbeb66748abc44a024090ff3aa38bd3",
"deps": [
"@com_lihaoyi_sourcecode",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
],
},
"org_scalameta_fastparse": {
"artifact": "org.scalameta:fastparse_2.13:1.0.1",
"sha256": "24b0a7d9e3c13679370c624fe0f14d4ff4cb4e72ea775bcbde0407044aa03f60",
"sha256": "b43b99244d5b51948daf1467083b3850dc2727c604de98dc426dec14244fd18e",
"deps": [
"@com_lihaoyi_sourcecode",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
Expand All @@ -54,44 +58,45 @@ artifacts = {
],
},
"org_scala_lang_modules_scala_collection_compat": {
"artifact": "org.scala-lang.modules:scala-collection-compat_2.13:2.1.2",
"sha256": "8b3dc6231c1107b0a49bec2fbeebbd533cc12bd571b96fa8bac00fe3662b1979",
"artifact": "org.scala-lang.modules:scala-collection-compat_2.13:2.2.0",
"sha256": "7f601d3a6d699433ddaf549ffa1441dcbe00bc95f4035add9776772053e9f93f",
"deps": [
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
],
},
"org_scalameta_parsers": {
"artifact": "org.scalameta:parsers_2.13:4.3.0",
"sha256": "24b0a7d9e3c13679370c624fe0f14d4ff4cb4e72ea775bcbde0407044aa03f60",
"artifact": "org.scalameta:parsers_2.13:4.3.24",
"sha256": "5faebb22a064f38a4be19fdadb288dc771c1e362d0c4d2f46546f08e4f43c091",
"deps": [
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
"@org_scalameta_trees",
],
},
"org_scalameta_scalafmt_core": {
"artifact": "org.scalameta:scalafmt-core_2.13:2.3.2",
"sha256": "26114b6b7e3abf8a61cf16393d224aa2b4341966e02a1cc823e9f430a4ecfabc",
"artifact": "org.scalameta:scalafmt-core_2.13:2.7.4",
"sha256": "873d98275f75b67c1e01094a24bafb29a588b7d05fdc508d3b1ba02f08d0c0d8",
"deps": [
"@com_geirsson_metaconfig_core",
"@com_geirsson_metaconfig_typesafe_config",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
"//external:io_bazel_rules_scala/dependency/scala/scala_reflect",
"@org_scalameta_scalameta",
"@org_scala_lang_modules_scala_collection_compat",
"@io_bazel_rules_scala_scala_parallel_collections",
],
},
"org_scalameta_scalameta": {
"artifact": "org.scalameta:scalameta_2.13:4.3.0",
"sha256": "907e563c4c3964f8a80b9ef1525b4eca6c85b45935695249ad4df13e3dda5bf8",
"artifact": "org.scalameta:scalameta_2.13:4.3.24",
"sha256": "d73eaf491eb588a2bd78aeba443e62bc95f1a368051d9e81607192c88fa4c61c",
"deps": [
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
"@org_scala_lang_scalap",
"@org_scalameta_parsers",
],
},
"org_scalameta_trees": {
"artifact": "org.scalameta:trees_2.13:4.3.0",
"sha256": "e8c7310185545397e34461c2d3775bca26a19f1676b674f6ac9ac201f6df75a5",
"artifact": "org.scalameta:trees_2.13:4.3.24",
"sha256": "d49d2b085ae62e9317dd2a4e8b14be5b1ecbec2db392fa81cab86ad2bd7c2c68",
"deps": [
"@com_thesamet_scalapb_scalapb_runtime",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
Expand Down Expand Up @@ -170,8 +175,8 @@ artifacts = {
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
},
"com_geirsson_metaconfig_core": {
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.4",
"sha256": "131d9ff048e709f60793a7c741762fdd782392dd07cdb6f7d2b9b76ed7c7f08d",
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.10",
"sha256": "2ee1f3ee60e4c5e3de63ab9bfe52be2c4f319552b7afedbc20c5097fc26fdc8c",
"deps": [
"@com_lihaoyi_pprint",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
Expand All @@ -180,8 +185,8 @@ artifacts = {
],
},
"com_geirsson_metaconfig_typesafe_config": {
"artifact": "com.geirsson:metaconfig-typesafe-config_2.13:0.9.4",
"sha256": "ff40df2b11ff7f9b9d3e6673eb8bd6d7fa989b9ffa7d9151fbad908054725ffb",
"artifact": "com.geirsson:metaconfig-typesafe-config_2.13:0.9.10",
"sha256": "bd3698fed4af61d03b9b70783dfaa457e664eae234ca1b83f2580552d1306e39",
"deps": [
"@com_geirsson_metaconfig_core",
"@com_typesafe_config",
Expand Down

0 comments on commit 5337116

Please sign in to comment.