Skip to content

Commit 322e422

Browse files
committed
Drop support for JavaScript
1 parent fe0d460 commit 322e422

29 files changed

+3
-986
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For more information about release and changelogs please see [Changelog](CHANGEL
2020

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

2525
Support for kotlin's -Xfriend-paths via the `associates=` attribute in the jvm allow access to
2626
`internal` members.

docs/kotlin.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,6 @@
22

33

44

5-
<a id="kt_js_import"></a>
6-
7-
## kt_js_import
8-
9-
<pre>
10-
kt_js_import(<a href="#kt_js_import-name">name</a>, <a href="#kt_js_import-kwargs">kwargs</a>)
11-
</pre>
12-
13-
14-
15-
**PARAMETERS**
16-
17-
18-
| Name | Description | Default Value |
19-
| :------------- | :------------- | :------------- |
20-
| <a id="kt_js_import-name"></a>name | <p align="center"> - </p> | none |
21-
| <a id="kt_js_import-kwargs"></a>kwargs | <p align="center"> - </p> | none |
22-
23-
24-
<a id="kt_js_library"></a>
25-
26-
## kt_js_library
27-
28-
<pre>
29-
kt_js_library(<a href="#kt_js_library-name">name</a>, <a href="#kt_js_library-kwargs">kwargs</a>)
30-
</pre>
31-
32-
33-
34-
**PARAMETERS**
35-
36-
37-
| Name | Description | Default Value |
38-
| :------------- | :------------- | :------------- |
39-
| <a id="kt_js_library-name"></a>name | <p align="center"> - </p> | none |
40-
| <a id="kt_js_library-kwargs"></a>kwargs | <p align="center"> - </p> | none |
41-
42-
43-
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
44-
45-
46-
475
<a id="#kt_javac_options"></a>
486

497
## kt_javac_options

kotlin/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ release_archive(
4646
],
4747
)
4848
for doc in [
49-
"js",
5049
"jvm",
5150
"lint",
5251
"core",
@@ -57,7 +56,6 @@ release_archive(
5756
genrule(
5857
name = "stardoc",
5958
srcs = [doc for doc in [
60-
"js",
6159
"jvm",
6260
"lint",
6361
"core",

kotlin/compiler/compiler.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
load("@com_github_jetbrains_kotlin//:artifacts.bzl", "KOTLINC_ARTIFACTS")
16-
load("//kotlin:js.bzl", "kt_js_import")
1716
load("//kotlin:jvm.bzl", "kt_jvm_import")
1817
load("//kotlin/internal:defs.bzl", _KT_COMPILER_REPO = "KT_COMPILER_REPO")
1918

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

56-
_import_artifacts(KOTLINC_ARTIFACTS.js, kt_js_import)
5755
_import_artifacts(KOTLINC_ARTIFACTS.jvm, kt_jvm_import)
5856
_import_artifacts(KOTLINC_ARTIFACTS.core, kt_jvm_import)

kotlin/internal/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ release_archive(
2828
"BUILD.release.bazel": "BUILD.bazel",
2929
},
3030
deps = [
31-
"//kotlin/internal/js:pkg",
3231
"//kotlin/internal/jvm:pkg",
3332
"//kotlin/internal/lint:pkg",
3433
"//kotlin/internal/utils:pkg",
@@ -40,7 +39,6 @@ bzl_library(
4039
srcs = glob(["*.bzl"]),
4140
visibility = ["//kotlin:__subpackages__"],
4241
deps = [
43-
"//kotlin/internal/js",
4442
"//kotlin/internal/jvm",
4543
"//kotlin/internal/lint",
4644
"//kotlin/internal/utils",

kotlin/internal/BUILD.release.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ bzl_library(
2222
srcs = glob(["*.bzl"]),
2323
visibility = ["//visibility:public"],
2424
deps = [
25-
"//kotlin/internal/js",
2625
"//kotlin/internal/jvm",
2726
"//kotlin/internal/lint",
2827
"//kotlin/internal/utils",

kotlin/internal/defs.bzl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ KtJvmInfo = provider(
4848
},
4949
)
5050

51-
KtJsInfo = provider(
52-
fields = {
53-
"js": "The primary output of the library",
54-
"js_map": "The map file for the library",
55-
"jar": "A jar of the library.",
56-
"srcjar": "The jar containing the sources of the library",
57-
},
58-
)
59-
6051
KtCompilerPluginInfo = _KtCompilerPluginInfo
6152

6253
KspPluginInfo = _KspPluginInfo

kotlin/internal/js/BUILD

Lines changed: 0 additions & 41 deletions
This file was deleted.

kotlin/internal/js/BUILD.release.bazel

Lines changed: 0 additions & 28 deletions
This file was deleted.

kotlin/internal/js/impl.bzl

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)