|
17 | 17 | <connect.version>0.7.2</connect.version> |
18 | 18 | <okhttp.version>4.12.0</okhttp.version> |
19 | 19 | <platform.branch>protocol/go/v0.16.0</platform.branch> |
| 20 | + <!-- test.java.security.file is set by the `non-fips` (default) or `fips` profile --> |
20 | 21 | </properties> |
21 | 22 | <dependencies> |
22 | 23 | <!-- Logging Dependencies --> |
|
148 | 149 | <version>6.0.53</version> |
149 | 150 | <scope>provided</scope> |
150 | 151 | </dependency> |
151 | | - <!-- Crypto Dependencies --> |
152 | | - <dependency> |
153 | | - <groupId>org.bouncycastle</groupId> |
154 | | - <artifactId>bcpkix-jdk18on</artifactId> |
155 | | - <scope>test</scope> |
156 | | - </dependency> |
157 | | - <dependency> |
158 | | - <groupId>org.bouncycastle</groupId> |
159 | | - <artifactId>bcprov-jdk18on</artifactId> |
160 | | - <scope>test</scope> |
161 | | - </dependency> |
| 152 | + <!-- Crypto Dependencies are pulled in via the `non-fips` (default) or `fips` profile --> |
162 | 153 | <!-- Testing Dependencies --> |
163 | 154 | <dependency> |
164 | 155 | <groupId>org.junit.jupiter</groupId> |
|
473 | 464 | </execution> |
474 | 465 | </executions> |
475 | 466 | </plugin> |
| 467 | + <plugin> |
| 468 | + <groupId>org.apache.maven.plugins</groupId> |
| 469 | + <artifactId>maven-surefire-plugin</artifactId> |
| 470 | + <configuration> |
| 471 | + <argLine>-Djava.security.properties=${test.java.security.file}</argLine> |
| 472 | + </configuration> |
| 473 | + </plugin> |
476 | 474 | </plugins> |
477 | 475 | </build> |
478 | | - <!--profile |
479 | | - to execute fuzz test --> |
480 | 476 | <profiles> |
| 477 | + <profile> |
| 478 | + <id>non-fips</id> |
| 479 | + <activation> |
| 480 | + <activeByDefault>true</activeByDefault> |
| 481 | + </activation> |
| 482 | + <properties> |
| 483 | + <test.java.security.file>${project.basedir}/src/test/java.security.test</test.java.security.file> |
| 484 | + </properties> |
| 485 | + <dependencies> |
| 486 | + <dependency> |
| 487 | + <groupId>org.bouncycastle</groupId> |
| 488 | + <artifactId>bcprov-jdk18on</artifactId> |
| 489 | + <scope>runtime</scope> |
| 490 | + </dependency> |
| 491 | + <dependency> |
| 492 | + <groupId>org.bouncycastle</groupId> |
| 493 | + <artifactId>bcpkix-jdk18on</artifactId> |
| 494 | + <scope>runtime</scope> |
| 495 | + </dependency> |
| 496 | + <dependency> |
| 497 | + <groupId>org.bouncycastle</groupId> |
| 498 | + <artifactId>bctls-jdk18on</artifactId> |
| 499 | + <scope>runtime</scope> |
| 500 | + </dependency> |
| 501 | + </dependencies> |
| 502 | + </profile> |
| 503 | + <profile> |
| 504 | + <id>fips</id> |
| 505 | + <activation> |
| 506 | + <activeByDefault>false</activeByDefault> |
| 507 | + </activation> |
| 508 | + <properties> |
| 509 | + <test.java.security.file>${project.basedir}/src/test/java.security.fips.test</test.java.security.file> |
| 510 | + </properties> |
| 511 | + <dependencies> |
| 512 | + <dependency> |
| 513 | + <groupId>org.bouncycastle</groupId> |
| 514 | + <artifactId>bc-fips</artifactId> |
| 515 | + <scope>runtime</scope> |
| 516 | + </dependency> |
| 517 | + <dependency> |
| 518 | + <groupId>org.bouncycastle</groupId> |
| 519 | + <artifactId>bcpkix-fips</artifactId> |
| 520 | + <scope>runtime</scope> |
| 521 | + </dependency> |
| 522 | + <dependency> |
| 523 | + <groupId>org.bouncycastle</groupId> |
| 524 | + <artifactId>bctls-fips</artifactId> |
| 525 | + <scope>runtime</scope> |
| 526 | + </dependency> |
| 527 | + </dependencies> |
| 528 | + </profile> |
| 529 | + <!-- profile to execute fuzz test --> |
481 | 530 | <profile> |
482 | 531 | <id>fuzz</id> |
483 | 532 | <activation> |
|
0 commit comments