-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added setup files to support using from Bazel
Includes simple warning suppression annotations, with an issue filed for followup. A MODULE.bazel is included, but incomplete, as j2cl and elemental2 do not use this format yet.
- Loading branch information
Showing
7 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Enable Java 11 | ||
build --java_language_version=11 | ||
|
||
# Enable Java 11 for J2CL compiler itself | ||
build --tool_java_language_version=11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
load("@com_google_j2cl//build_defs:rules.bzl", "j2cl_library") | ||
|
||
j2cl_library( | ||
name = 'gwt-nio', | ||
srcs = glob(["src/main/java/**/*.java"]), | ||
deps = [ | ||
"@com_google_j2cl//:jsinterop-annotations-j2cl", | ||
"@com_google_elemental2//:elemental2-core-j2cl", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module( | ||
name = "gwt-nio", | ||
repo_name = "com_vertispan_nio", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
workspace(name = "com_vertispan_nio") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
# Load j2cl repository | ||
http_archive( | ||
name = "com_google_j2cl", | ||
strip_prefix = "j2cl-20230718", | ||
url = "https://github.com/google/j2cl/archive/refs/tags/v20230718.zip", | ||
) | ||
|
||
load("@com_google_j2cl//build_defs:repository.bzl", "load_j2cl_repo_deps") | ||
load_j2cl_repo_deps() | ||
|
||
load("@com_google_j2cl//build_defs:workspace.bzl", "setup_j2cl_workspace") | ||
setup_j2cl_workspace() | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "com_google_elemental2", | ||
strip_prefix = "elemental2-1.2.1", | ||
url = "https://github.com/google/elemental2/archive/1.2.1.zip", | ||
) | ||
|
||
load("@com_google_elemental2//build_defs:repository.bzl", "load_elemental2_repo_deps") | ||
load_elemental2_repo_deps() | ||
|
||
load("@com_google_elemental2//build_defs:workspace.bzl", "setup_elemental2_workspace") | ||
setup_elemental2_workspace() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters