Skip to content

Commit

Permalink
Removed configure_bootstrap_scala and configure_zinc_sala
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaden Peterson committed Aug 27, 2024
1 parent d21cc29 commit fc377ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 181 deletions.
114 changes: 0 additions & 114 deletions rules/scala.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ load(
_scala_import_implementation = "scala_import_implementation",
_scala_import_private_attributes = "scala_import_private_attributes",
)
load(
"//rules/scala:private/provider.bzl",
_configure_bootstrap_scala_implementation = "configure_bootstrap_scala_implementation",
_configure_zinc_scala_implementation = "configure_zinc_scala_implementation",
)
load(
"//rules/scala:private/repl.bzl",
_scala_repl_implementation = "scala_repl_implementation",
Expand Down Expand Up @@ -473,112 +468,3 @@ Generates Scaladocs.
"@bazel_tools//tools/jdk:toolchain_type",
],
)

##
## core/underlying rules and configuration ##
##

configure_bootstrap_scala = rule(
attrs = {
"compiler_classpath": attr.label_list(
mandatory = True,
providers = [JavaInfo],
),
"global_plugins": attr.label_list(
doc = "Scalac plugins that will always be enabled.",
providers = [JavaInfo],
),
"global_scalacopts": attr.string_list(
doc = "Scalac options that will always be enabled.",
),
"runtime_classpath": attr.label_list(
mandatory = True,
providers = [JavaInfo],
),
"semanticdb_bundle": attr.bool(
default = True,
doc = "Whether to bundle SemanticDB files in the resulting JAR. Note that in Scala 2, this requires the SemanticDB compiler plugin.",
),
"use_ijar": attr.bool(
doc = "Whether to use ijars for this compiler.",
default = True,
),
"version": attr.string(mandatory = True),
},
implementation = _configure_bootstrap_scala_implementation,
)

_configure_zinc_scala = rule(
attrs = {
"compiler_bridge": attr.label(
allow_single_file = True,
mandatory = True,
),
"compiler_classpath": attr.label_list(
mandatory = True,
providers = [JavaInfo],
),
"deps_direct": attr.string(default = "error"),
"deps_used": attr.string(default = "error"),
"global_plugins": attr.label_list(
doc = "Scalac plugins that will always be enabled.",
providers = [JavaInfo],
),
"global_scalacopts": attr.string_list(
doc = "Scalac options that will always be enabled.",
),
"incremental": attr.bool(
doc = "Whether Zinc's incremental compilation will be available for this Zinc compiler. If True, this requires additional configuration to use incremental compilation.",
default = False,
),
"log_level": attr.string(
doc = "Compiler log level",
default = "warn",
),
"runtime_classpath": attr.label_list(
mandatory = True,
providers = [JavaInfo],
),
"semanticdb_bundle": attr.bool(
default = True,
doc = "Whether to bundle SemanticDB files in the resulting JAR. Note that in Scala 2, this requires the SemanticDB compiler plugin.",
),
"use_ijar": attr.bool(
doc = "Whether to use ijars for this compiler.",
default = True,
),
"version": attr.string(mandatory = True),
"_code_coverage_instrumentation_worker": attr.label(
default = "@rules_scala_annex//src/main/scala/higherkindness/rules_scala/workers/jacoco/instrumenter",
allow_files = True,
executable = True,
cfg = "host",
),
"_compile_worker": attr.label(
default = "@rules_scala_annex//src/main/scala/higherkindness/rules_scala/workers/zinc/compile",
allow_files = True,
executable = True,
cfg = "host",
),
"_deps_worker": attr.label(
default = "@rules_scala_annex//src/main/scala/higherkindness/rules_scala/workers/deps",
allow_files = True,
executable = True,
cfg = "host",
),
},
implementation = _configure_zinc_scala_implementation,
)

def configure_zinc_scala(**kwargs):
_configure_zinc_scala(
deps_direct = select({
"@rules_scala_annex//src/main/scala:deps_direct_off": "off",
"//conditions:default": "error",
}),
deps_used = select({
"@rules_scala_annex//src/main/scala:deps_used_off": "off",
"//conditions:default": "error",
}),
**kwargs
)
67 changes: 0 additions & 67 deletions rules/scala/private/provider.bzl

This file was deleted.

0 comments on commit fc377ee

Please sign in to comment.