Skip to content
Utilities for GWT and J2CL to interact with JavaScript beyond JsInterop
Java JavaScript Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
javatests/jsinterop/base Remove workaround that no longer needed. Dec 11, 2019
WORKSPACE Add License header to our shell script files. Sep 17, 2019

JsInterop Base · Build Status

jsInterop-base contains a set of utilities that cannot be expressed with Jsinterop itself and allows GWT and J2CL projects to write certain JavaScript expressions with pure Java.

Bazel dependency

If your project use Bazel, add this repository as an external dependency in your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
    name = "com_google_jsinterop_base",
    strip_prefix = "jsinterop-base-%s" % _JSINTEROP_BASE_VERSION,

Then add @com_google_jsinterop_base//:jsinterop-base-j2cl to your j2cl_library deps.

Maven dependency

If your project use Maven, add maven dependency in your pom.xml:


Download the jar file

You can also download manually the jar file.


If you use jsinterop-base with GWT, you need to inherit the following gwt module in your gwt.xml file:

<inherits name="jsinterop.base.Base" />

Build GWT compatible maven jar files

If you want to build the last version on your own, follow the instructions below:

  • Install Bazel.

  • clone this repository with git: git clone

  • Inside the repository, run the script

     $ ./ --version local --no-deploy

The script will output the directory containing the generated jar files that can be used with maven.


Please refer to the contributing document.


Please refer to the license file.


This is not an official Google product.

You can’t perform that action at this time.