Socket
Socket
Sign inDemoInstall

com.google.jsinterop:jsinterop-annotations

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.google.jsinterop:jsinterop-annotations

JsInterop Annotations contains a set of java annotations that drive the javascript code generation of J2CL transpiler or GWT


Maintainers
1

Readme

Source

JsInterop Annotations · Build Status

JsInterop Annotations contains a set of java annotations that drive the javascript code generation of J2CL transpiler or GWT

Bazel dependency

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

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
_JSINTEROP_ANNOTATIONS_VERSION = "2.0.0"
http_archive(
    name = "com_google_jsinterop_annotations",
    strip_prefix = "jsinterop-annotations-%s" % _JSINTEROP_ANNOTATIONS_VERSION,
    url = "https://github.com/google/jsinterop-annotations/archive/%s.zip" % _JSINTEROP_ANNOTATIONS_VERSION,
)

Then add @com_google_jsinterop_annotations//:jsinterop-annotations-j2cl to your j2cl_library deps.

Maven dependency

If your project uses Maven, add the following maven dependency in your pom.xml:

<dependency>
    <groupId>com.google.jsinterop</groupId>
    <artifactId>jsinterop-annotations</artifactId>
    <version>1.0.2</version>
</dependency>

The last version fully compatible with GWT is 1.0.2. The 2.0 release brings new annotations specific to J2CL. We recommend GWT users to stick with the 1.0.2 release.

Download the jar file

You can also download manually the jar file.

Build GWT compatible maven jar files

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.

Contributing

Please refer to the contributing document.

Licensing

Please refer to the license file.

Disclaimer

This is not an official Google product.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc