Skip to content

Commit

Permalink
Drop support for JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Jun 28, 2024
1 parent fe0d460 commit 322e422
Show file tree
Hide file tree
Showing 29 changed files with 3 additions and 986 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For more information about release and changelogs please see [Changelog](CHANGEL

**rules_kotlin** supports the basic paradigm of `*_binary`, `*_library`, `*_test` of other Bazel
language rules. It also supports `jvm`, `android`, and `js` flavors, with the prefix `kt_jvm`
and `kt_js`, and `kt_android` typically applied to the rules.
and `kt_android` typically applied to the rules.

Support for kotlin's -Xfriend-paths via the `associates=` attribute in the jvm allow access to
`internal` members.
Expand Down
42 changes: 0 additions & 42 deletions docs/kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,6 @@



<a id="kt_js_import"></a>

## kt_js_import

<pre>
kt_js_import(<a href="#kt_js_import-name">name</a>, <a href="#kt_js_import-kwargs">kwargs</a>)
</pre>



**PARAMETERS**


| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="kt_js_import-name"></a>name | <p align="center"> - </p> | none |
| <a id="kt_js_import-kwargs"></a>kwargs | <p align="center"> - </p> | none |


<a id="kt_js_library"></a>

## kt_js_library

<pre>
kt_js_library(<a href="#kt_js_library-name">name</a>, <a href="#kt_js_library-kwargs">kwargs</a>)
</pre>



**PARAMETERS**


| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="kt_js_library-name"></a>name | <p align="center"> - </p> | none |
| <a id="kt_js_library-kwargs"></a>kwargs | <p align="center"> - </p> | none |


<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#kt_javac_options"></a>

## kt_javac_options
Expand Down
2 changes: 0 additions & 2 deletions kotlin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ release_archive(
],
)
for doc in [
"js",
"jvm",
"lint",
"core",
Expand All @@ -57,7 +56,6 @@ release_archive(
genrule(
name = "stardoc",
srcs = [doc for doc in [
"js",
"jvm",
"lint",
"core",
Expand Down
2 changes: 0 additions & 2 deletions kotlin/compiler/compiler.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

load("@com_github_jetbrains_kotlin//:artifacts.bzl", "KOTLINC_ARTIFACTS")
load("//kotlin:js.bzl", "kt_js_import")
load("//kotlin:jvm.bzl", "kt_jvm_import")
load("//kotlin/internal:defs.bzl", _KT_COMPILER_REPO = "KT_COMPILER_REPO")

Expand Down Expand Up @@ -53,6 +52,5 @@ def kt_configure_compiler():
if native.package_name() != "kotlin/compiler":
fail("kt_configure_compiler must be called in kotlin/compiler not %s" % native.package_name())

_import_artifacts(KOTLINC_ARTIFACTS.js, kt_js_import)
_import_artifacts(KOTLINC_ARTIFACTS.jvm, kt_jvm_import)
_import_artifacts(KOTLINC_ARTIFACTS.core, kt_jvm_import)
2 changes: 0 additions & 2 deletions kotlin/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ release_archive(
"BUILD.release.bazel": "BUILD.bazel",
},
deps = [
"//kotlin/internal/js:pkg",
"//kotlin/internal/jvm:pkg",
"//kotlin/internal/lint:pkg",
"//kotlin/internal/utils:pkg",
Expand All @@ -40,7 +39,6 @@ bzl_library(
srcs = glob(["*.bzl"]),
visibility = ["//kotlin:__subpackages__"],
deps = [
"//kotlin/internal/js",
"//kotlin/internal/jvm",
"//kotlin/internal/lint",
"//kotlin/internal/utils",
Expand Down
1 change: 0 additions & 1 deletion kotlin/internal/BUILD.release.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ bzl_library(
srcs = glob(["*.bzl"]),
visibility = ["//visibility:public"],
deps = [
"//kotlin/internal/js",
"//kotlin/internal/jvm",
"//kotlin/internal/lint",
"//kotlin/internal/utils",
Expand Down
9 changes: 0 additions & 9 deletions kotlin/internal/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ KtJvmInfo = provider(
},
)

KtJsInfo = provider(
fields = {
"js": "The primary output of the library",
"js_map": "The map file for the library",
"jar": "A jar of the library.",
"srcjar": "The jar containing the sources of the library",
},
)

KtCompilerPluginInfo = _KtCompilerPluginInfo

KspPluginInfo = _KspPluginInfo
Expand Down
41 changes: 0 additions & 41 deletions kotlin/internal/js/BUILD

This file was deleted.

28 changes: 0 additions & 28 deletions kotlin/internal/js/BUILD.release.bazel

This file was deleted.

159 changes: 0 additions & 159 deletions kotlin/internal/js/impl.bzl

This file was deleted.

Loading

0 comments on commit 322e422

Please sign in to comment.