|
61 | 61 | <artifactId>maven-surefire-plugin</artifactId> |
62 | 62 | <version>2.22.2</version> |
63 | 63 | <configuration> |
64 | | -<!-- <parallel>all</parallel> <!– Run tests in parallel–>--> |
65 | | -<!-- <useUnlimitedThreads>true</useUnlimitedThreads>--> |
66 | 64 | <rerunFailingTestsCount>10</rerunFailingTestsCount> |
67 | 65 | <argLine>-Xms1g -Xmx1g</argLine> |
68 | 66 | </configuration> |
|
107 | 105 | </plugins> |
108 | 106 | </reporting> |
109 | 107 |
|
| 108 | + <profiles> |
| 109 | + <profile> |
| 110 | + <id>java-12-plus-reflection</id> |
| 111 | + <activation> |
| 112 | + <jdk>[12,)</jdk> |
| 113 | + </activation> |
| 114 | + <build> |
| 115 | + <plugins> |
| 116 | + <plugin> |
| 117 | + <groupId>org.apache.maven.plugins</groupId> |
| 118 | + <artifactId>maven-surefire-plugin</artifactId> |
| 119 | + <configuration> |
| 120 | + <argLine> --add-opens java.base/java.nio=ALL-UNNAMED </argLine> |
| 121 | + </configuration> |
| 122 | + </plugin> |
| 123 | + |
| 124 | + <plugin> |
| 125 | + <groupId>org.codehaus.mojo</groupId> |
| 126 | + <artifactId>exec-maven-plugin</artifactId> |
| 127 | + <executions> |
| 128 | + <execution> |
| 129 | + <id>run-benchmarks</id> |
| 130 | + <configuration> |
| 131 | + <arguments> |
| 132 | + <argument>--add-opens=java.base/java.nio=ALL-UNNAMED</argument> |
| 133 | + <argument>-classpath</argument> |
| 134 | + <classpath/> |
| 135 | + <argument>org.openjdk.jmh.Main</argument> |
| 136 | + </arguments> |
| 137 | + </configuration> |
| 138 | + </execution> |
| 139 | + </executions> |
| 140 | + </plugin> |
| 141 | + </plugins> |
| 142 | + </build> |
| 143 | + </profile> |
| 144 | + </profiles> |
110 | 145 | <dependencies> |
111 | 146 | <dependency> |
112 | 147 | <groupId>no.fiken.oss.junixsocket</groupId> |
|
119 | 154 | <version>1.0.2</version> |
120 | 155 | </dependency> |
121 | 156 |
|
122 | | - <!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna --> |
123 | 157 | <dependency> |
124 | 158 | <groupId>net.java.dev.jna</groupId> |
125 | 159 | <artifactId>jna</artifactId> |
126 | 160 | <version>5.12.1</version> |
127 | 161 | </dependency> |
128 | 162 |
|
129 | | - <!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna-platform --> |
130 | 163 | <dependency> |
131 | 164 | <groupId>net.java.dev.jna</groupId> |
132 | 165 | <artifactId>jna-platform</artifactId> |
133 | 166 | <version>5.12.1</version> |
134 | 167 | </dependency> |
135 | 168 |
|
136 | | - <!-- https://mvnrepository.com/artifact/junit/junit --> |
137 | 169 | <dependency> |
138 | 170 | <groupId>junit</groupId> |
139 | 171 | <artifactId>junit</artifactId> |
140 | 172 | <version>4.13.2</version> |
141 | 173 | <scope>test</scope> |
142 | 174 | </dependency> |
143 | 175 |
|
144 | | - <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core --> |
145 | 176 | <dependency> |
146 | 177 | <groupId>org.mockito</groupId> |
147 | 178 | <artifactId>mockito-core</artifactId> |
148 | 179 | <version>3.12.4</version> |
149 | 180 | <scope>test</scope> |
150 | 181 | </dependency> |
151 | 182 |
|
152 | | - <!-- https://mvnrepository.com/artifact/org.assertj/assertj-core --> |
153 | 183 | <dependency> |
154 | 184 | <groupId>org.assertj</groupId> |
155 | 185 | <artifactId>assertj-core</artifactId> |
156 | 186 | <version>3.23.1</version> |
157 | 187 | <scope>test</scope> |
158 | 188 | </dependency> |
159 | 189 |
|
160 | | - <!-- https://mvnrepository.com/artifact/org.openjdk.jmh --> |
161 | 190 | <dependency> |
162 | 191 | <groupId>org.openjdk.jmh</groupId> |
163 | 192 | <artifactId>jmh-core</artifactId> |
|
0 commit comments