Skip to content

Commit e2ec977

Browse files
committed
rework build a bit
1 parent 8fd2c0a commit e2ec977

3 files changed

Lines changed: 15 additions & 16 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,22 @@ jobs:
8585
path: ~/.sonar/cache
8686
key: ${{ runner.os }}-sonar
8787
restore-keys: ${{ runner.os }}-sonar
88-
- name: Maven Test Coverage
88+
- name: Generate sources
8989
env:
90-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9190
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9291
BUF_INPUT_HTTPS_USERNAME: opentdf-bot
9392
BUF_INPUT_HTTPS_PASSWORD: ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }}
93+
run: mvn --batch-mode clean generate-sources
94+
- name: Tests and enforcer (fips)
95+
run: mvn --batch-mode verify -P 'fips,!non-fips' -Dmaven.antrun.skip
96+
- name: Tests with coverage and javadoc (non-fips)
97+
env:
98+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9499
run: |
95-
mvn --batch-mode clean verify -P 'fips,!non-fips' && \
96-
mvn --batch-mode verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dmaven.antrun.skip -Dsonar.projectKey=opentdf_java-sdk -P 'coverage,non-fips,!fips'
100+
mvn --batch-mode verify javadoc:javadoc \
101+
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
102+
-Dmaven.antrun.skip -Dsonar.projectKey=opentdf_java-sdk \
103+
-P 'coverage,non-fips,!fips'
97104
98105
platform-integration:
99106
runs-on: ubuntu-22.04

sdk/pom.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -483,20 +483,10 @@
483483
<activeByDefault>true</activeByDefault>
484484
</activation>
485485
<dependencies>
486-
<dependency>
487-
<groupId>org.bouncycastle</groupId>
488-
<artifactId>bcprov-jdk18on</artifactId>
489-
<scope>runtime</scope>
490-
</dependency>
491486
<dependency>
492487
<groupId>org.bouncycastle</groupId>
493488
<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>
489+
<scope>test</scope>
500490
</dependency>
501491
</dependencies>
502492
</profile>

sdk/src/test/java.security.fips.test renamed to sdk/src/test/resources/java.security.fips.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
ssl.KeyManagerFactory.algorithm=PKIX
44
ssl.TrustManagerFactory.algorithm=PKIX
55

6+
# the SUN provider is required so that we can get the NativePRNGBlocking algorithm
67
securerandom.strongAlgorithms=NativePRNGBlocking:SUN
78

89
security.provider.1=org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider
910
security.provider.2=org.bouncycastle.jsse.provider.BouncyCastleJsseProvider fips:BCFIPS
10-
# the SUN provider is required so that we can get the NativePRNGBlocking algorithm
1111
security.provider.3=SUN
12+
13+
# since this file is appended we need to make sure that we remove the other providers
1214
security.provider.4=
1315
security.provider.5=
1416
security.provider.6=

0 commit comments

Comments
 (0)