Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: sonar to use Java 17 #2365

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

ci: sonar to use Java 17 #2365

wants to merge 1 commit into from

Conversation

suztomo
Copy link
Contributor

@suztomo suztomo commented Feb 22, 2024

SonarCloud build has been failing due to the error message:
The version of Java (11.0.22) used to run this analysis is deprecated, and SonarCloud no longer supports it. Please upgrade to Java 17 or later.

SonarCloud build has been failing due to the error message:
 The version of Java (11.0.22) used to run this analysis is deprecated, and SonarCloud no longer supports it. Please upgrade to Java 17 or later.
@suztomo
Copy link
Contributor Author

suztomo commented Feb 22, 2024

It failed:

[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ dependencies ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 77 source files to /home/runner/work/cloud-opensource-java/cloud-opensource-java/dependencies/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Google Cloud Platform Supported Libraries 25.3.1-SNAPSHOT SUCCESS [  1.142 s]
[INFO] Google Cloud Long Term Support BOM 6.0.0-SNAPSHOT .. SUCCESS [  0.006 s]
[INFO] BOM Parent 1.0-SNAPSHOT ............................ SUCCESS [  0.005 s]
[INFO] Cloud Platform Supported Libraries Upper Bounds Check 2.0.0-SNAPSHOT SUCCESS [  3.835 s]
[INFO] Cloud Tools Open Source Code Hygiene Tooling 1.5.14-SNAPSHOT SUCCESS [  4.585 s]
[INFO] Maven Dependency Graph Analyzer 1.5.14-SNAPSHOT .... FAILURE [  4.908 s]
[INFO] integration-tests 1.2.0-SNAPSHOT ................... SKIPPED
[INFO] Cloud Tools Open Source Code Hygiene Dashboard 1.5.14-SNAPSHOT SKIPPED
[INFO] Linkage Checker Enforcer Rule 1.5.14-SNAPSHOT ...... SKIPPED
[INFO] Linkage Monitor 1.5.14-SNAPSHOT .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.975 s
[INFO] Finished at: 2024-02-22T15:25:33Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project dependencies: Compilation failure -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project dependencies: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:[117](https://github.com/GoogleCloudPlatform/cloud-opensource-java/actions/runs/8006885374/job/21869648115?pr=2365#step:7:118))
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:[128](https://github.com/GoogleCloudPlatform/cloud-opensource-java/actions/runs/8006885374/job/21869648115?pr=2365#step:7:129))
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)

@suztomo suztomo marked this pull request as draft February 22, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant