Skip to content

Commit 4ad9df0

Browse files
authored
[hotfix] Add profile to apply --add-opens for java17 CI (#103)
1 parent bdddfbf commit 4ad9df0

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed

Diff for: .github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Compile
4646
# https.protocols is a workaround for https://bugs.openjdk.java.net/browse/JDK-8213202
47-
run: mvn install -P test -DskipTests=true -Dmaven.javadoc.skip=true -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -B -V
47+
run: mvn install -P test-java17 -DskipTests=true -Dmaven.javadoc.skip=true -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -B -V
4848

4949
- name: Test
50-
run: mvn test -P test -B
50+
run: mvn test -P test-java17 -B

Diff for: pom.xml

+59
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,65 @@ under the License.
324324
</build>
325325
</profile>
326326

327+
<profile>
328+
<id>test-java17</id>
329+
<activation>
330+
<activeByDefault>false</activeByDefault>
331+
</activation>
332+
<build>
333+
<plugins>
334+
<plugin>
335+
<groupId>org.codehaus.mojo</groupId>
336+
<artifactId>exec-maven-plugin</artifactId>
337+
<version>${maven.exec.version}</version>
338+
<executions>
339+
<execution>
340+
<id>test-benchmarks</id>
341+
<phase>test</phase>
342+
<goals>
343+
<goal>exec</goal>
344+
</goals>
345+
</execution>
346+
</executions>
347+
<configuration>
348+
<skip>${skipTests}</skip>
349+
<classpathScope>test</classpathScope>
350+
<executable>${basedir}/benchmark.sh</executable>
351+
<arguments>
352+
<argument>-c</argument>
353+
<classpath/>
354+
<argument>-b</argument>
355+
<argument>${executableJava}</argument>
356+
<argument>-j</argument>
357+
<argument>-Xmx6g</argument>
358+
<argument>-j</argument>
359+
<argument>--add-opens</argument>
360+
<argument>-j</argument>
361+
<argument>java.base/java.util=ALL-UNNAMED</argument>
362+
<!--speed up tests-->
363+
<argument>-a</argument>
364+
<argument>-f</argument>
365+
<argument>-a</argument>
366+
<argument>1</argument>
367+
<argument>-a</argument>
368+
<argument>-i</argument>
369+
<argument>-a</argument>
370+
<argument>1</argument>
371+
<argument>-a</argument>
372+
<argument>-wi</argument>
373+
<argument>-a</argument>
374+
<argument>0</argument>
375+
<argument>-e</argument>
376+
<argument>${benchmarkExcludes}</argument>
377+
<argument>-m</argument>
378+
<argument>${benchmarks}</argument>
379+
</arguments>
380+
</configuration>
381+
</plugin>
382+
</plugins>
383+
</build>
384+
</profile>
385+
327386
<profile>
328387
<id>benchmark</id>
329388
<activation>

0 commit comments

Comments
 (0)