Skip to content

Commit

Permalink
Introduced sechub-encryption #3273 + update bouncy castle version #3275
Browse files Browse the repository at this point in the history
- moved own encryption implementations into own gradle sub module
  "sechub-encryption"
- CryptoAccess class is kept in commons-core because
  there are no dependencies to bouncy castle or other
  libraries
- updated bouncy castle dependencies to 1.78.1
  • Loading branch information
de-jcup committed Jul 4, 2024
1 parent 7af8425 commit 27e9bd2
Show file tree
Hide file tree
Showing 28 changed files with 24 additions and 5 deletions.
13 changes: 10 additions & 3 deletions gradle/libraries.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ ext {
cycloneDX_core: "8.0.0",
cyclonedx_gradle_plugin: "1.7.4",

/* Prepare wrapper */
jgit_core: "6.9.0.202403050737-r"
/* Prepare wrapper */
jgit_core: "6.9.0.202403050737-r",

/* encryption */
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
bouncy_castle_bcprov_jdk8: "1.78.1"

]

Expand Down Expand Up @@ -187,7 +191,10 @@ ext {
/* cycloneDX core for Xray and sechub importer */
cycloneDX_core: "org.cyclonedx:cyclonedx-core-java:${libraryVersion.cycloneDX_core}",

jgit_core: "org.eclipse.jgit:org.eclipse.jgit:${libraryVersion.jgit_core}"
jgit_core: "org.eclipse.jgit:org.eclipse.jgit:${libraryVersion.jgit_core}",

bouncy_castle_bcprov_jdk8: "org.bouncycastle:bcprov-jdk18on:${libraryVersion.bouncy_castle_bcprov_jdk8}"

]


Expand Down
1 change: 1 addition & 0 deletions gradle/projects.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ projectType = [
project(':sechub-commons-model-testframework'),
project(':sechub-commons-pds'),
project(':sechub-commons-archive'),
project(':sechub-encryption'),
project(':sechub-storage-core'),
project(':sechub-wrapper-owasp-zap'),
project(':sechub-pds-commons-core'),
Expand Down
2 changes: 0 additions & 2 deletions sechub-commons-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ dependencies {

api spring_boot_dependency.slf4j_api

implementation 'org.bouncycastle:bcprov-jdk18on:1.73'

testImplementation spring_boot_dependency.junit_jupiter
testImplementation spring_boot_dependency.mockito_core

Expand Down
9 changes: 9 additions & 0 deletions sechub-encryption/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// SPDX-License-Identifier: MIT
dependencies {

implementation library.bouncy_castle_bcprov_jdk8
testImplementation spring_boot_dependency.junit_jupiter
testImplementation spring_boot_dependency.mockito_core

}

1 change: 1 addition & 0 deletions sechub-schedule/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
implementation(library.apache_commons_fileupload2_jakarta)

implementation project(':sechub-shared-kernel')
implementation project(':sechub-encryption')

testImplementation project(':sechub-testframework')
testImplementation project(':sechub-commons-model-testframework')
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ include 'sechub-cli',
'sechub-commons-pds',
'sechub-commons-archive',

/* encryption */
'sechub-encryption',

/* server POD area */
'sechub-server', // executable spring boot jar
'sechub-server-core', // core project for test compile dependencies and more
Expand Down

0 comments on commit 27e9bd2

Please sign in to comment.