Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 67472fb

Browse files
Merge pull request #227 from Trivadis/feature/issue-226-graalvm-22.2.0
Feature/issue 226 graalvm 22.2.0
2 parents 42413b0 + ae862b6 commit 67472fb

3 files changed

Lines changed: 26 additions & 12 deletions

File tree

standalone/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ The parameters are the same as for the [executable JAR](#executable-jar).
5252
## How to Build
5353

5454
1. [Download](https://www.oracle.com/tools/downloads/sqlcl-downloads.html) and install SQLcl 22.2.0
55-
2. [Download](https://github.com/graalvm/graalvm-ce-builds/releases) and install the GraalVM JDK 17 22.1.0
56-
3. Go to the `bin` directory of the GraalVM JDK and run `./gu install native-image`, if you want to produce a native image
55+
2. [Download](https://github.com/graalvm/graalvm-ce-builds/releases) and install the GraalVM JDK 17 22.2.0
56+
3. Go to the `bin` directory of the GraalVM JDK and run `./gu install js native-image`, if you want to produce a native image
5757
4. [Download](https://maven.apache.org/download.cgi) and install Apache Maven 3.8.6
5858
5. [Download](https://git-scm.com/downloads) and install a git command line client
5959
6. Clone the plsql-formatter-settings repository

standalone/pom.xml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@
1313
<jdk.version>11</jdk.version>
1414
<jdk.test.version>17</jdk.test.version>
1515
<sqlcl.version>22.2.0</sqlcl.version>
16-
<graalvm.version>22.1.0.1</graalvm.version>
17-
<native.maven.plugin.version>0.9.12</native.maven.plugin.version>
16+
<graalvm.version>22.2.0</graalvm.version>
17+
<native.maven.plugin.version>0.9.13</native.maven.plugin.version>
18+
<reflections.version>0.10.2</reflections.version>
19+
<slf4j.version>1.7.36</slf4j.version>
20+
<javassist.version>3.29.0-GA</javassist.version>
1821
<skip.native>true</skip.native>
1922
<disable.logging>true</disable.logging>
2023
</properties>
@@ -92,13 +95,27 @@
9295
<dependency>
9396
<groupId>org.reflections</groupId>
9497
<artifactId>reflections</artifactId>
95-
<version>0.10.2</version>
98+
<version>${reflections.version}</version>
9699
<scope>compile</scope>
97100
</dependency>
98101
<dependency>
99102
<groupId>org.slf4j</groupId>
100103
<artifactId>slf4j-jdk14</artifactId>
101-
<version>1.7.36</version>
104+
<version>${slf4j.version}</version>
105+
<scope>compile</scope>
106+
</dependency>
107+
<dependency>
108+
<!-- transitive dependendency, added to control version -->
109+
<groupId>org.slf4j</groupId>
110+
<artifactId>slf4j-api</artifactId>
111+
<version>${slf4j.version}</version>
112+
<scope>compile</scope>
113+
</dependency>
114+
<dependency>
115+
<!-- transitive dependendency, added to control version -->
116+
<groupId>org.javassist</groupId>
117+
<artifactId>javassist</artifactId>
118+
<version>${javassist.version}</version>
102119
<scope>compile</scope>
103120
</dependency>
104121
</dependencies>
@@ -363,11 +380,11 @@
363380
<goal>build</goal>
364381
</goals>
365382
<phase>package</phase>
366-
<!-- Override classpath to ensure js and js-scriptengine are not added to the classpath.
367-
This reduces resuting image size by 22 MB (143 MB instead of 165 MB). -->
383+
<!-- Override classpath to ensure js is not added to the classpath.
384+
This reduces resuting image size by 24 MB (162 MB instead of 186 MB). -->
368385
<configuration>
369386
<classpath>
370-
${project.build.directory}/${project.build.finalName}.jar:${settings.localRepository}/oracle/dbtools/dbtools-common/${sqlcl.version}/dbtools-common-${sqlcl.version}.jar:${settings.localRepository}/org/reflections/reflections/0.10.2/reflections-0.10.2.jar:${settings.localRepository}/org/javassist/javassist/3.28.0-GA/javassist-3.28.0-GA.jar:${settings.localRepository}/org/slf4j/slf4j-api/1.7.32/slf4j-api-1.7.32.jar:${settings.localRepository}/org/slf4j/slf4j-jdk14/1.7.32/slf4j-jdk14-1.7.32.jar
387+
${project.build.directory}/${project.build.finalName}.jar:${settings.localRepository}/oracle/dbtools/dbtools-common/${sqlcl.version}/dbtools-common-${sqlcl.version}.jar:${settings.localRepository}/org/reflections/reflections/${reflections.version}/reflections-${reflections.version}.jar:${settings.localRepository}/org/javassist/javassist/${javassist.version}/javassist-${javassist.version}.jar:${settings.localRepository}/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.jar:${settings.localRepository}/org/slf4j/slf4j-jdk14/${slf4j.version}/slf4j-jdk14-${slf4j.version}.jar:${settings.localRepository}/org/graalvm/js/js-scriptengine/${graalvm.version}/js-scriptengine-${graalvm.version}.jar
371388
</classpath>
372389
</configuration>
373390
</execution>

standalone/src/main/resources/META-INF/native-image/com.trivadis.plsql.formatter/tvdformat/resource-config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
{
2626
"pattern": "\\QMETA-INF/services/org.graalvm.polyglot.impl.AbstractPolyglotImpl\\E"
2727
},
28-
{
29-
"pattern": "\\Qcom/oracle/truffle/llvm/nfi/SulongNFI.class\\E"
30-
},
3128
{
3229
"pattern": "\\Qcom/oracle/truffle/nfi/backend/libffi/LibFFILanguage.class\\E"
3330
},

0 commit comments

Comments
 (0)