Skip to content

Commit a74794d

Browse files
committed
Add IntelliJ run config parameters
to suppress native access and Unsafe usage warnings.
1 parent 0f50741 commit a74794d

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
/nbproject/
55
/target/
66
/bin/
7-
/.idea/
7+
/.idea/*
8+
!/.idea/runConfigurations/
89
/out/
910
/.classpath
1011
/.project

.idea/runConfigurations/_template__of_Application.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<maven.compiler.target>1.8</maven.compiler.target>
1212
<maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version>
1313
<maven-shade-plugin.version>3.6.2</maven-shade-plugin.version>
14+
<exec-maven-plugin.version>3.5.0</exec-maven-plugin.version>
1415
<lwjgl.version>3.4.2-SNAPSHOT</lwjgl.version>
1516
<swt.maven.version>3.131.0</swt.maven.version> <!-- contains Eclipse SWT 4.958 software -->
1617
<joml.version>1.10.8</joml.version>
@@ -182,6 +183,21 @@
182183
<artifactId>maven-compiler-plugin</artifactId>
183184
<version>${maven-compiler-plugin.version}</version>
184185
</plugin>
186+
<plugin>
187+
<groupId>org.codehaus.mojo</groupId>
188+
<artifactId>exec-maven-plugin</artifactId>
189+
<version>${exec-maven-plugin.version}</version>
190+
<configuration>
191+
<executable>java</executable>
192+
<arguments>
193+
<argument>--sun-misc-unsafe-memory-access=allow</argument>
194+
<argument>--enable-native-access=ALL-UNNAMED</argument>
195+
<argument>-classpath</argument>
196+
<classpath/>
197+
<argument>org.lwjgl.demo.${class}</argument>
198+
</arguments>
199+
</configuration>
200+
</plugin>
185201
<plugin>
186202
<artifactId>maven-shade-plugin</artifactId>
187203
<version>${maven-shade-plugin.version}</version>

0 commit comments

Comments
 (0)