JsInterop Base

Base classes and utilities that provide access to JavaScript language constructs that are not available in pure Java.

License

License

GroupId

GroupId

org.realityforge.com.google.jsinterop
ArtifactId

ArtifactId

base
Last Version

Last Version

1.0.0-b2-e6d791f
Release Date

Release Date

Type

Type

jar
Description

Description

JsInterop Base
Base classes and utilities that provide access to JavaScript language constructs that are not available in pure Java.
Source Code Management

Source Code Management

https://github.com/google/jsinterop-base

Download base

How to add to project

<!-- https://jarcasting.com/artifacts/org.realityforge.com.google.jsinterop/base/ -->
<dependency>
    <groupId>org.realityforge.com.google.jsinterop</groupId>
    <artifactId>base</artifactId>
    <version>1.0.0-b2-e6d791f</version>
</dependency>
// https://jarcasting.com/artifacts/org.realityforge.com.google.jsinterop/base/
implementation 'org.realityforge.com.google.jsinterop:base:1.0.0-b2-e6d791f'
// https://jarcasting.com/artifacts/org.realityforge.com.google.jsinterop/base/
implementation ("org.realityforge.com.google.jsinterop:base:1.0.0-b2-e6d791f")
'org.realityforge.com.google.jsinterop:base:jar:1.0.0-b2-e6d791f'
<dependency org="org.realityforge.com.google.jsinterop" name="base" rev="1.0.0-b2-e6d791f">
  <artifact name="base" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.realityforge.com.google.jsinterop', module='base', version='1.0.0-b2-e6d791f')
)
libraryDependencies += "org.realityforge.com.google.jsinterop" % "base" % "1.0.0-b2-e6d791f"
[org.realityforge.com.google.jsinterop/base "1.0.0-b2-e6d791f"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.jsinterop : jsinterop-annotations jar 1.0.2

Project Modules

There are no modules declared in this project.

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 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_BASE_VERSION = "1.0.0"
http_archive(
    name = "com_google_jsinterop_base",
    strip_prefix = "jsinterop-base-%s" % _JSINTEROP_BASE_VERSION,
    url = "https://github.com/google/jsinterop-base/archive/%s.zip" % _JSINTEROP_BASE_VERSION,
)

Then add @com_google_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:

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

Download the jar file

You can also download manually the jar file.

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.

org.realityforge.com.google.jsinterop

Google

Google ❤️ Open Source

Versions

Version
1.0.0-b2-e6d791f
1.0.0-b1-e6d791f