jsinterop-base
1.1.0
published 1 week ago
72 stars
16 forks
18 watchers
Apache License 2.0
public
4 assets
57 downloads
28 KB
Compatibility level unknown
Iu4IWTt4N5dhhdzfh0EOnHKdeewY2jVXWtzMNDz9CP8=
1.1.0
August 6, 2025
[expand for release notes]

JsInterop Base · Latest Release · 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

Using Bazel 8 or later, add to your `MODULE.bazel` file:

bazel_dep(name = "jsinterop_base", version = "<RELEASE_VERSION>")

Replace RELEASE_VERSION with an actual release version:

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

Maven dependency

If your project uses Maven, add the following maven dependency in your pom.xml. Replace RELEASE_VERSION with an actual release version:

<dependency>
  <groupId>com.google.jsinterop</groupId>
  <artifactId>base</artifactId>
  <version>RELEASE_VERSION</version>
</dependency>

GWT

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:

    $ npm install -g @bazel/bazelisk
    $ alias bazel=bazelisk
  • Clone this git repository:
    $ git clone https://github.com/google/jsinterop-base.git
  • Run the release script:
        $ cd jsinterop-base
        $ ./maven/release_jsinterop_base.sh --version local --no-deploy

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

Contributing

Please refer to the contributing document.

Licensing

Please refer to the license file.

Disclaimer

This is not an official Google product.