From 4ed7c3568a584d84a667248f59ac6d99f6954309 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 12 Jul 2023 20:22:48 -0500 Subject: [PATCH] SQSCANNER-116 Run Scanner with Java 17 --- .cirrus.yml | 45 ++------------------------------------------- it/pom.xml | 2 +- pom.xml | 25 +++++++++++++------------ 3 files changed, 16 insertions(+), 56 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 6446b40..ee3178c 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -32,7 +32,7 @@ eks_container: &EKS_CONTAINER region: eu-central-1 cluster_name: ${CIRRUS_CLUSTER_NAME} namespace: default - image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j11-m3-latest + image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-m3-latest cpu: 1 memory: 2G @@ -41,7 +41,7 @@ ec2_instance: &EC2_INSTANCE_WINDOWS region: eu-central-1 subnet_id: ${CIRRUS_AWS_SUBNET} type: t2.2xlarge - image: base-windows-jdk11-v* + image: base-windows-jdk17-v* platform: windows only_sonarsource_qa: &ONLY_SONARSOURCE_QA @@ -69,31 +69,12 @@ build_task: cleanup_before_cache_script: - cleanup_maven_repository -linux_qa_java11_task: - depends_on: - - build - <<: *ONLY_SONARSOURCE_QA - eks_container: - <<: *EKS_CONTAINER - env: - SQ_VERSION: LATEST_RELEASE[8.9] - maven_cache: - folder: ${CIRRUS_WORKING_DIR}/.m2/repository - qa_script: - - source cirrus-env QA - - source set_maven_build_version $BUILD_NUMBER - - cd it - - mvn -B -e -Dsonar.runtimeVersion="$SQ_VERSION" -Dmaven.test.redirectTestOutputToFile=false verify - cleanup_before_cache_script: - - cleanup_maven_repository - linux_qa_java17_task: depends_on: - build <<: *ONLY_SONARSOURCE_QA eks_container: <<: *EKS_CONTAINER - image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-m3-latest env: matrix: - SQ_VERSION: LATEST_RELEASE[8.9] @@ -108,32 +89,12 @@ linux_qa_java17_task: cleanup_before_cache_script: - cleanup_maven_repository -win_qa_java11_task: - depends_on: - - build - <<: *ONLY_SONARSOURCE_QA - ec2_instance: - <<: *EC2_INSTANCE_WINDOWS - env: - CIRRUS_SHELL: bash - SQ_VERSION: LATEST_RELEASE[8.9] - maven_cache: - folder: ${CIRRUS_WORKING_DIR}/.m2/repository - qa_script: - - source cirrus-env QA - - source set_maven_build_version $BUILD_NUMBER - - cd it - - mvn -B -e -Dsonar.runtimeVersion="$SQ_VERSION" -Dmaven.test.redirectTestOutputToFile=false verify - cleanup_before_cache_script: - - cleanup_maven_repository - win_qa_java17_task: depends_on: - build <<: *ONLY_SONARSOURCE_QA ec2_instance: <<: *EC2_INSTANCE_WINDOWS - image: base-windows-jdk17-v* env: CIRRUS_SHELL: bash matrix: @@ -151,9 +112,7 @@ win_qa_java17_task: promote_task: depends_on: - - linux_qa_java11 - linux_qa_java17 - - win_qa_java11 - win_qa_java17 <<: *ONLY_SONARSOURCE_QA <<: *EXCEPT_ON_NIGHTLY_CRON diff --git a/it/pom.xml b/it/pom.xml index 6719a2c..9f96231 100644 --- a/it/pom.xml +++ b/it/pom.xml @@ -25,7 +25,7 @@ 7.9.1 - 11 + 17 diff --git a/pom.xml b/pom.xml index 83a11bd..f534144 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.sonarsource.parent parent - 65.0.218 + 68.0.0.247 org.sonarsource.scanner.cli @@ -52,14 +52,14 @@ ${project.build.directory}/unpack ${project.build.finalName}.jar - jdk-11.0.17+8-jre - jdk-11.0.17+8-jre - jdk-11.0.17+8-jre/Contents/Home + jdk-17.0.7+7-jre + jdk-17.0.7+7-jre + jdk-17.0.7+7-jre/Contents/Home ${project.groupId}:${project.artifactId}:zip,${project.groupId}:${project.artifactId}:zip:linux,${project.groupId}:${project.artifactId}:zip:windows,${project.groupId}:${project.artifactId}:zip:macosx,${project.groupId}:${project.artifactId}:json:cyclonedx - 11 + 17 @@ -126,6 +126,7 @@ org.apache.maven.plugins maven-shade-plugin + 3.5.0 package @@ -193,7 +194,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 11 + 17 @@ -235,10 +236,10 @@ wget - https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.17%2B8/OpenJDK11U-jre_x64_linux_hotspot_11.0.17_8.tar.gz + https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_linux_hotspot_17.0.7_7.tar.gz true ${unpack.dir}/linux - 752616097e09d7f60a3ad8bd312f90eaf50ac72577e55df229fe6e8091148f79 + bb025133b96266f6415d5084bb9b260340a813968007f1d2d14690f20bd021ca @@ -285,10 +286,10 @@ wget - https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.17%2B8/OpenJDK11U-jre_x64_windows_hotspot_11.0.17_8.zip + https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_windows_hotspot_17.0.7_7.zip true ${unpack.dir}/windows - 814a731f92dd67ad6cfb11a8b06dfad5f629f67be88ae5ae37d34e6eea6be6f4 + 62e82c1afa7509424813e9cb22d8becfec4346d7505e6d2fc8770af4dcd5b9a0 @@ -334,10 +335,10 @@ wget - https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.17%2B8/OpenJDK11U-jre_x64_mac_hotspot_11.0.17_8.tar.gz + https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_mac_hotspot_17.0.7_7.tar.gz true ${unpack.dir}/macosx - 66508958b5da6e36021d960b65490ab70cc7d44851c98301a3d6d3552f305674 + 62559a927a8dbac2ea1d7879f590a62fea87d61bfaa92894e578d2045b8d921b -- 2.39.5