Skip to content

Commit e080304

Browse files
committed
Remove duplicate maven coordinates in Java Interop docs.
1 parent fca9dc4 commit e080304

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

docs/user/JavaInteroperability.md

+1-17
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,7 @@ This documentation shows you how to enable interoperability with Java and possib
1313

1414
As of GraalVM for JDK 21, all necessary artifacts can be downloaded directly from Maven Central.
1515
All artifacts relevant to embedders can be found in the Maven dependency group [`org.graalvm.polyglot`](https://central.sonatype.com/namespace/org.graalvm.polyglot).
16-
17-
To embed JavaScript in a Java application, add the following dependencies to the Maven configuration file:
18-
```xml
19-
<dependency>
20-
<groupId>org.graalvm.polyglot</groupId>
21-
<artifactId>polyglot</artifactId>
22-
<version>${graaljs.version}</version>
23-
</dependency>
24-
<dependency>
25-
<groupId>org.graalvm.polyglot</groupId>
26-
<artifactId>js</artifactId>
27-
<version>${graaljs.version}</version>
28-
<type>pom</type>
29-
</dependency>
30-
```
31-
The `pom` type is a requirement for a language dependency.
32-
Learn more about the dependency setup in the [Java Interoperability guide](JavaInteroperability.md).
16+
Learn more about the dependency setup in the [Getting Started guide](README.md).
3317

3418
## Polyglot Context
3519

docs/user/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Below is the Maven configuration for a JavaScript embedding:
3535
</dependency>
3636
```
3737
This enables GraalJS which is built on top of Oracle GraalVM and licensed under the [GraalVM Free Terms and Conditions (GFTC)](https://www.oracle.com/downloads/licenses/graal-free-license.html).
38-
Use `js-community` if you want to use GraalJS built on GraalVM Community Edition.
38+
Use _artifactId_ `js-community` instead of `js` if you want to use GraalJS built on GraalVM Community Edition.
3939

4040
Go step-by-step to create a Maven project, embedding JavaScript in Java, and run it.
4141
This example application was tested with GraalVM for JDK 23 and the GraalVM Polyglot API version 24.1.0.

0 commit comments

Comments
 (0)