Skip to content

Commit

Permalink
Upgrade to GraalVM 22.2.0 where R language support was still available
Browse files Browse the repository at this point in the history
  • Loading branch information
olyagpl committed Dec 15, 2023
1 parent 49fa47c commit ed24215
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/spring-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
version: '22.1.0'
version: '22.2.0'
java-version: '11'
components: 'R'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
- name: Run 'spring-r'
run: |
cd spring-r
mvn --no-transfer-progress spring-boot:run -Dgraalvm.version=22.1.0 &
mvn --no-transfer-progress spring-boot:run -Dgraalvm.version=22.2.0 &
sleep 60
curl http://localhost:8080/load
2 changes: 1 addition & 1 deletion functionGraphDemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is a multi-language application mixing JavaScript, Java, and R to demonstra

1. Download and install GraalVM 22.3 with the Node.js, R, and Ruby languages support, using the [GraalVM JDK Downloader](https://github.com/graalvm/graalvm-jdk-downloader).
```bash
bash <(curl -sL https://get.graalvm.org/jdk) graalvm-ce-java17-22.3.0 -c 'nodejs,R,ruby'
bash <(curl -sL https://get.graalvm.org/jdk) graalvm-ce-java17-22.2.0 -c 'nodejs,R,ruby'
```
Follow the post-install message.

Expand Down
13 changes: 8 additions & 5 deletions spring-r/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ This repository contains the code for a demo application for [GraalVM](graalvm.o

### Prerequisites

* [GraalVM](http://graalvm.org)
* [R support](https://www.graalvm.org/latest/reference-manual/r/)
- [GraalVM 22.2.0 or lower](https://www.graalvm.org/)
- [R runtime](https://www.graalvm.org/22.3/reference-manual/r/)

>Note: FastR is no longer under active development and is in maintenance mode. The last released version is 22.3.0.
## Preparation

This is a simple Java Spring application that uses GraalVM interoperability to load an R script, which uses typical R packages, `lattice` in this case.

1. Download and install the latest GraalVM JDK with R support using the [GraalVM JDK Downloader](https://github.com/graalvm/graalvm-jdk-downloader):
1. Download and install GraalVM 22.2.0 with the R language support, using the [GraalVM JDK Downloader](https://github.com/graalvm/graalvm-jdk-downloader).
```bash
bash <(curl -sL https://get.graalvm.org/jdk) -c 'R'
bash <(curl -sL https://get.graalvm.org/jdk) graalvm-ce-java17-22.2.0 -c 'R'
```
Follow the post-install message.

2. Download or clone the repository and navigate into the `spring-r` directory:
```bash
Expand All @@ -26,7 +29,7 @@ This is a simple Java Spring application that uses GraalVM interoperability to l

4. Run the example:
```bash
mvn spring-boot:run -Dgraalvm.version=22.1.0
mvn spring-boot:run -Dgraalvm.version=22.2.0
```

Replace "22.1.0" with your version of GraalVM.
Expand Down
4 changes: 2 additions & 2 deletions spring-r/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<graalvm.version>21.2.0</graalvm.version>
<java.version>11</java.version>
<graalvm.version>22.2.0</graalvm.version>
</properties>

<dependencies>
Expand Down

0 comments on commit ed24215

Please sign in to comment.