JsInterop Annotations contains a set of java annotations that drive the javascript code generation of J2CL transpiler or GWT
If your project uses Bazel, J2CL repository already
provides targets @j2cl//:jsinterop-annotations
and
@j2cl://jsinterop-annotations-j2cl
for Server/Android and J2CL respectively.
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>jsinterop-annotations</artifactId>
<version>RELEASE_VERSION</version>
</dependency>
If you want to build the last version on your own, follow the instructions below:
- Install Bazelisk:
$ npm install -g @bazel/bazelisk
$ alias bazel=bazelisk
- Clone this git repository:
$ git clone https://github.com/google/jsinterop-annotations.git
- Run the release script:
$ cd jsinterop-annotations $ ./maven/release_jsinterop_annotations.sh --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.