From de60da7af88fa853812a597844646ebb7751e62c Mon Sep 17 00:00:00 2001 From: crazzyghost Date: Tue, 23 Jan 2024 03:02:17 +0000 Subject: [PATCH 1/4] update circleci sonarcloud image dependencies --- .circleci/config.yml | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ac7e6c3..bffeeec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ orbs: jobs: build: docker: - - image: circleci/openjdk:8-jdk + - image: cimg/openjdk:8.0 working_directory: ~/repo @@ -69,7 +69,7 @@ jobs: - build/* sonar: docker: - - image: circleci/openjdk:11-jdk + - image: cimg/openjdk:17.0 steps: - checkout - attach_workspace: diff --git a/build.gradle b/build.gradle index 7902b78..cddd9ae 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'java-library' id 'maven-publish' id 'jacoco' - id "org.sonarqube" version "3.3" + id "org.sonarqube" version "4.4.1.3373" } group = 'com.github.crazzyghost' From 289f117c9a047bd83739e343287f36438984a299 Mon Sep 17 00:00:00 2001 From: crazzyghost Date: Tue, 23 Jan 2024 10:47:35 +0000 Subject: [PATCH 2/4] support java 8 runtime for sonar scanner --- .gitignore | 3 ++- build.gradle | 2 +- settings.gradle | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2cc0606..737da17 100644 --- a/.gitignore +++ b/.gitignore @@ -142,4 +142,5 @@ bin/** _config.yml site/** -.python-version \ No newline at end of file +.python-version +.java-version \ No newline at end of file diff --git a/build.gradle b/build.gradle index cddd9ae..065f6af 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'java-library' id 'maven-publish' id 'jacoco' - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "4.0.0.2929" } group = 'com.github.crazzyghost' diff --git a/settings.gradle b/settings.gradle index e5e0481..7a24cec 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,3 @@ rootProject.name = 'alphavantage' +System.setProperty("sonar.gradle.skipCompile", "true") From eaf3b346e64ed6de6b3628f342ff4d2e9c64a666 Mon Sep 17 00:00:00 2001 From: crazzyghost Date: Tue, 23 Jan 2024 10:56:13 +0000 Subject: [PATCH 3/4] update java 8 version in build step --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bffeeec..2b0198d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ orbs: jobs: build: docker: - - image: cimg/openjdk:8.0 + - image: cimg/openjdk:8.0.312 working_directory: ~/repo From 9cc24922f312e48679c7d5b2ab55ad7cf0707e12 Mon Sep 17 00:00:00 2001 From: crazzyghost Date: Tue, 23 Jan 2024 11:04:04 +0000 Subject: [PATCH 4/4] update java 11 version in sonarscan step --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2b0198d..079e6ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,7 +69,7 @@ jobs: - build/* sonar: docker: - - image: cimg/openjdk:17.0 + - image: cimg/openjdk:17.0.6 steps: - checkout - attach_workspace: