You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ redirect_from:
12
12
13
13
You can use GraalPy with GraalVM JDK, Oracle JDK, or OpenJDK.
14
14
You can easily add GraalPy to your Java application using Maven or Gradle build tools as shown below.
15
-
Other build systems (Ant, Make, CMake, ...) can also be used with a bit more manual work.
15
+
Other build systems (Ant, Make, CMake, and so on) can also be used with a bit more manual work.
16
16
17
17
## Maven
18
18
@@ -54,7 +54,6 @@ In order to distribute the resulting application for other systems, follow these
54
54
2. Unzip each of the JAR files (substituting the correct names for the JAR files).
55
55
A special file, _vfs/fileslist.txt_ needs to be concatenated from each JAR file.
56
56
Finally, create a new _combined.jar_ from the combination of all files and with the concatenated _fileslist.txt_.
57
-
58
57
```bash
59
58
unzip linux.jar -d combined
60
59
mv combined/vfs/fileslist.txt fileslist-linux.txt
@@ -67,6 +66,8 @@ In order to distribute the resulting application for other systems, follow these
67
66
68
67
## Gradle
69
68
69
+
> Note: GraalPy Gradle Plugin will become available as of GraalPy version 24.1.1, planned for October 15, 2024.
70
+
70
71
1. Create a Java application with Gradle using the command below and follow the prompts (select the Groovy build script language, selectatest framework, and so on):
71
72
```bash
72
73
gradle init --type java-application \
@@ -89,10 +90,9 @@ In order to distribute the resulting application for other systems, follow these
89
90
90
91
2. Open your project configuration file, _app/build.gradle_, and modify it as follows.
91
92
- Include the GraalPy support and the [GraalVM Polyglot API](https://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/package-summary.html) in the `dependencies` section:
3. Finally, replace the code in the file named _App.java_ as follows for a small Python embedding:
@@ -116,14 +116,14 @@ In order to distribute the resulting application for other systems, follow these
116
116
```
117
117
The application prints "Hello Python!" to the console.
118
118
119
-
> Note: The performance of the GraalPy runtime depends on the JDK in which you embed it. For more information, see [Runtime Optimization Support](https://www.graalvm.org/latest/reference-manual/embed-languages/#runtime-optimization-support).
119
+
> Note: The performance of the GraalPy runtime depends on the JDK in which you embed it. For more information, see [Runtime Optimization Support](https://www.graalvm.org/latest/reference-manual/embed-languages/#runtime-optimization-support).
120
120
121
121
5. Optionally, you can also use a third-party Python package:
122
122
123
123
5.1. In _app/build.gradle_:
124
124
- add the graalpy-gradle-plugin to the `plugins` section:
125
125
```
126
-
id "org.graalvm.python" version "24.2.0"
126
+
id "org.graalvm.python" version "24.1.1"
127
127
```
128
128
129
129
- configure the GraalPy Gradle plugin:
@@ -133,7 +133,7 @@ In order to distribute the resulting application for other systems, follow these
133
133
}
134
134
```
135
135
136
-
5.2, In _settings.gradle_, add the following `pluginManagement` configuration.
136
+
5.2. In _settings.gradle_, add the following `pluginManagement` configuration.
137
137
```
138
138
pluginManagement {
139
139
repositories {
@@ -187,13 +187,13 @@ GraalPy comes with a tool to obtain the required JAR files from Maven.
0 commit comments