Update Dependency Scanning fixtures and test projects to use Java 17

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

After merging Use Java 17 by default (gitlab-org/security-products/analyzers/gemnasium-maven!193 - merged), we started to see failures with our test projects due to the fact that the fixture files in these test projects are incompatible with Java 17. In order to work around this, we configured an environment variable at the test project level to set DS_JAVA_VERSION: 11. This resulted in the Dependency Scanning jobs in the pipeline to pass successfully.

Likewise, many of the qa/fixture files used in gemnasium-maven are not compatible with Java 17, so we had to set DS_JAVA_VERSION: 11 in order to fix them.

The purpose of this issue is to update the test projects and fixture files in gemnasium-maven/qa/fixtures so they're compatible with Java 17

Implementation Plan

  1. Update the fixture files for the following test projects and branches so they're compatible with Java 17 (21 projects total)

  2. Update the files in the gemnasium-maven/qa/fixtures directory for the v3 branch so they're compatible with Java 17. The fixture files that need to be updated are the ones that have DS_JAVA_VERSION: 11 configured, as shown in the image_spec.rb file:

  3. Remove the environment variable DS_JAVA_VERSION: 11 from the Settings -> CI/CD -> Variables of the following test projects

  4. Run the Nightly Secure Test execution in the secure-test-project-orchestrator project and ensure that all tests pass

/cc @fcatteau @gonzoyumo @sam.white

Edited by 🤖 GitLab Bot 🤖