Skip to content

Jakarta EE, Spring 6, Spring-Boot 3 migration

Rustam Lotsmanenko (EPAM) requested to merge migartion-spring6-jakarta into master

Related issue: #69

Description:

How to test:

Integration tests.

Changes include:

  • Refactor (a non-breaking change that improves code maintainability).
  • Bugfix (a non-breaking change that solves an issue).
  • New feature (a non-breaking change that adds functionality).
  • Breaking change (a change that is not backward-compatible and/or changes current functionality).

Changes in:

  • GC
  • Azure
  • AWS
  • IBM
  • Common Code
  • Community Impl

Other comments:

mvn dependency:tree -Dincludes="org.springframework.*"

Click to expand

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] legal-service                                                      [pom]
[INFO] legal-core                                                         [jar]
[INFO] legal-core-plus                                                    [jar]
[INFO] legal-gc                                                           [jar]
[INFO] legal-azure                                                        [jar]
[INFO] legal-aws                                                          [jar]
[INFO] legal-ibm                                                          [jar]
[INFO] 
[INFO] ---------------< org.opengroup.osdu.legal:legal-service >---------------
[INFO] Building legal-service 0.26.0-SNAPSHOT                             [1/7]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-service ---
[INFO] org.opengroup.osdu.legal:legal-service:pom:0.26.0-SNAPSHOT
[INFO] \- org.springdoc:springdoc-openapi-starter-webmvc-ui:jar:2.3.0:compile
[INFO]    \- org.springdoc:springdoc-openapi-starter-webmvc-api:jar:2.3.0:compile
[INFO]       \- org.springdoc:springdoc-openapi-starter-common:jar:2.3.0:compile
[INFO]          \- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO]             \- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] 
[INFO] ----------------< org.opengroup.osdu.legal:legal-core >-----------------
[INFO] Building legal-core 0.26.0-SNAPSHOT                                [2/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-core ---
[INFO] org.opengroup.osdu.legal:legal-core:jar:0.26.0-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-logging:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.2.3:compile
[INFO] |     \- org.springframework.boot:spring-boot-actuator:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-json:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-tomcat:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:3.2.3:compile
[INFO] |  +- org.springframework.security:spring-security-config:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-web:jar:6.2.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.2.3:test
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:3.2.3:test
[INFO] |  \- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.2.3:test
[INFO] \- org.springframework.security:spring-security-test:jar:6.2.2:test
[INFO]    \- org.springframework.security:spring-security-core:jar:6.2.2:compile
[INFO]       \- org.springframework.security:spring-security-crypto:jar:6.2.2:compile
[INFO] 
[INFO] --------------< org.opengroup.osdu.legal:legal-core-plus >--------------
[INFO] Building legal-core-plus 0.26.0-SNAPSHOT                           [3/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-core-plus ---
[INFO] org.opengroup.osdu.legal:legal-core-plus:jar:0.26.0-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-loader:jar:3.2.3:compile
[INFO] +- org.opengroup.osdu.legal:legal-core:jar:0.26.0-SNAPSHOT:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-actuator:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.2.3:compile
[INFO] |  |     \- org.springframework.boot:spring-boot-actuator:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-web:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-json:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-tomcat:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-security:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.2.3:test
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-logging:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:3.2.3:test
[INFO] |  \- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.2.3:test
[INFO] +- org.springframework.security:spring-security-test:jar:6.2.2:test
[INFO] |  +- org.springframework.security:spring-security-core:jar:6.2.2:compile
[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-web:jar:6.2.2:compile
[INFO] \- org.springframework.security:spring-security-config:jar:6.2.2:compile
[INFO] 
[INFO] -----------------< org.opengroup.osdu.legal:legal-gc >------------------
[INFO] Building legal-gc 0.26.0-SNAPSHOT                                  [4/7]
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Could not transfer metadata com.nimbusds:lang-tag/maven-metadata.xml from/to ${repo.releases.id} (${repo.releases.url}): Cannot access ${repo.releases.url} with type default using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata com.nimbusds:nimbus-jose-jwt/maven-metadata.xml from/to ${repo.releases.id} (${repo.releases.url}): Cannot access ${repo.releases.url} with type default using the available connector factories: BasicRepositoryConnectorFactory
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-gc ---
[WARNING] com.nimbusds:lang-tag/maven-metadata.xmlfailed to transfer from ${repo.releases.url} during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of ${repo.releases.id} has elapsed or updates are forced. Original error: Could not transfer metadata com.nimbusds:lang-tag/maven-metadata.xml from/to ${repo.releases.id} (${repo.releases.url}): Cannot access ${repo.releases.url} with type default using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] com.nimbusds:nimbus-jose-jwt/maven-metadata.xmlfailed to transfer from ${repo.releases.url} during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of ${repo.releases.id} has elapsed or updates are forced. Original error: Could not transfer metadata com.nimbusds:nimbus-jose-jwt/maven-metadata.xml from/to ${repo.releases.id} (${repo.releases.url}): Cannot access ${repo.releases.url} with type default using the available connector factories: BasicRepositoryConnectorFactory
[INFO] org.opengroup.osdu.legal:legal-gc:jar:0.26.0-SNAPSHOT
[INFO] +- org.opengroup.osdu.legal:legal-core:jar:0.26.0-SNAPSHOT:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-actuator:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.2.3:compile
[INFO] |  |     \- org.springframework.boot:spring-boot-actuator:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-web:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-json:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-tomcat:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-security:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.security:spring-security-config:jar:6.2.2:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.2.3:test
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-logging:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:3.2.3:test
[INFO] |  \- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.2.3:test
[INFO] +- org.springframework.security:spring-security-test:jar:6.2.2:test
[INFO] |  +- org.springframework.security:spring-security-core:jar:6.2.2:compile
[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-web:jar:6.2.2:compile
[INFO] \- org.opengroup.osdu:osm:jar:0.25.0:compile
[INFO]    \- org.springframework.boot:spring-boot-starter-jdbc:jar:3.2.3:compile
[INFO] 
[INFO] ----------------< org.opengroup.osdu.legal:legal-azure >----------------
[INFO] Building legal-azure 0.26.0-SNAPSHOT                               [5/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-azure ---
[INFO] org.opengroup.osdu.legal:legal-azure:jar:0.26.0-SNAPSHOT
[INFO] +- org.opengroup.osdu.legal:legal-core:jar:0.26.0-SNAPSHOT:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-actuator:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.2.3:compile
[INFO] |  |     \- org.springframework.boot:spring-boot-actuator:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-web:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-json:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-tomcat:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:3.2.3:compile
[INFO] +- com.azure.spring:spring-cloud-azure-starter-active-directory:jar:5.10.0:compile
[INFO] |  +- org.springframework.security:spring-security-web:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-config:jar:6.2.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter:jar:3.2.3:compile
[INFO] |     +- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] |     +- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO] |     \- org.springframework.boot:spring-boot-starter-logging:jar:3.2.3:compile
[INFO] +- org.springframework.security:spring-security-oauth2-client:jar:6.2.2:compile
[INFO] |  +- org.springframework.security:spring-security-core:jar:6.2.2:compile
[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-oauth2-core:jar:6.2.2:compile
[INFO] +- org.springframework.security:spring-security-oauth2-jose:jar:6.2.2:compile
[INFO] +- org.opengroup.osdu:core-lib-azure-spring6:jar:0.26.0-rc6:compile
[INFO] |  +- com.azure:azure-spring-data-cosmos:jar:5.9.1:compile
[INFO] |  |  \- org.springframework.data:spring-data-commons:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-log4j2:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-aop:jar:3.2.3:compile
[INFO] \- org.springframework.boot:spring-boot-starter-test:jar:3.2.3:test
[INFO]    +- org.springframework.boot:spring-boot-test:jar:3.2.3:test
[INFO]    \- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.2.3:test
[INFO] 
[INFO] -----------------< org.opengroup.osdu.legal:legal-aws >-----------------
[INFO] Building legal-aws 0.26.0-SNAPSHOT                                 [6/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-aws ---
[INFO] org.opengroup.osdu.legal:legal-aws:jar:0.26.0-SNAPSHOT
[INFO] +- org.opengroup.osdu.core.aws:os-core-lib-aws:jar:0.26.0-spring6-rc1:compile
[INFO] |  +- org.springframework.boot:spring-boot-dependencies:pom:3.2.2:compile
[INFO] |  \- org.springframework.data:spring-data-mongodb:jar:4.2.3:compile
[INFO] |     \- org.springframework.data:spring-data-commons:jar:3.2.3:compile
[INFO] +- org.opengroup.osdu.legal:legal-core:jar:0.26.0-SNAPSHOT:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-actuator:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.2.3:compile
[INFO] |  |     \- org.springframework.boot:spring-boot-actuator:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-web:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-json:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-tomcat:jar:3.2.3:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-logging:jar:3.2.3:compile
[INFO] |  +- org.springframework.security:spring-security-config:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-web:jar:6.2.2:compile
[INFO] +- org.springframework.security:spring-security-oauth2-client:jar:6.2.2:compile
[INFO] |  +- org.springframework.security:spring-security-core:jar:6.2.2:compile
[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:6.2.2:compile
[INFO] |  \- org.springframework.security:spring-security-oauth2-core:jar:6.2.2:compile
[INFO] +- org.springframework.security:spring-security-oauth2-jose:jar:6.2.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.2.3:test
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:3.2.3:test
[INFO] |  \- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.2.3:test
[INFO] \- org.springframework.security:spring-security-test:jar:6.2.2:test
[INFO] 
[INFO] -----------------< org.opengroup.osdu.legal:legal-ibm >-----------------
[INFO] Building legal-ibm 0.26.0-SNAPSHOT                                 [7/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ legal-ibm ---
[INFO] org.opengroup.osdu.legal:legal-ibm:jar:0.26.0-SNAPSHOT
[INFO] +- org.opengroup.osdu.legal:legal-core:jar:0.26.0-SNAPSHOT:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-actuator:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.2.3:compile
[INFO] |  |     \- org.springframework.boot:spring-boot-actuator:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-web:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-json:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-tomcat:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-security:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.security:spring-security-config:jar:6.2.2:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot:jar:3.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.2.3:test
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:3.2.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:3.2.3:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-logging:jar:3.2.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:3.2.3:test
[INFO] |  \- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.2.3:test
[INFO] \- org.springframework.security:spring-security-test:jar:6.2.2:test
[INFO]    +- org.springframework.security:spring-security-core:jar:6.2.2:compile
[INFO]    |  \- org.springframework.security:spring-security-crypto:jar:6.2.2:compile
[INFO]    \- org.springframework.security:spring-security-web:jar:6.2.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for legal-service 0.26.0-SNAPSHOT:
[INFO] 
[INFO] legal-service ...................................... SUCCESS [  0.957 s]
[INFO] legal-core ......................................... SUCCESS [  0.680 s]
[INFO] legal-core-plus .................................... SUCCESS [  0.425 s]
[INFO] legal-gc ........................................... SUCCESS [  1.087 s]
[INFO] legal-azure ........................................ SUCCESS [  0.531 s]
[INFO] legal-aws .......................................... SUCCESS [  0.305 s]
[INFO] legal-ibm .......................................... SUCCESS [  0.287 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.219 s
[INFO] Finished at: 2024-03-12T15:49:55+02:00
[INFO] ------------------------------------------------------------------------
Edited by Rustam Lotsmanenko (EPAM)

Merge request reports