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

docker image build error using feature/sonarqube-10_0-support plugin and 10.0.0-community image #795

Closed
mgexm opened this issue Aug 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mgexm
Copy link

mgexm commented Aug 17, 2023

$ uname -a
Linux qat-sonarq-01 5.15.0-1031-aws #35~20.04.1-Ubuntu SMP Sat Feb 11 16:19:06 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ git clone https://github.com/mc1arke/sonarqube-community-branch-plugin
$ sonarqube-community-branch-plugin/
$ git checkout feature/sonarqube-10_0-support
$ git status
On branch feature/sonarqube-10_0-support

$ docker build --build-arg SONARQUBE_VERSION=10.0.0-community --build-arg PLUGIN_VERSION=1.15.0-SNAPSHOT -t mysonarqube:10.0.0 .

[+] Building 45.5s (10/11) docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 72B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 685B 0.0s
=> [internal] load metadata for docker.io/library/sonarqube:10.0.0-community 0.3s
=> [internal] load metadata for docker.io/library/gradle:7.3.3-jdk11-alpine 0.3s
=> [internal] load build context 0.0s
=> => transferring context: 95.78kB 0.0s
=> CACHED [stage-1 1/2] FROM docker.io/library/sonarqube:10.0.0-community@sha256:ef9723cf4fe427107f8b4e4a310402d708af669089feb5993cb11e0c61433d7b 0.0s
=> [builder 1/4] FROM docker.io/library/gradle:7.3.3-jdk11-alpine@sha256:755150f3629bf71e8de605ce74396a633774d4009466ba01c754758fd09e944c 0.0s
=> CACHED [builder 2/4] COPY . /home/build/project 0.0s
=> CACHED [builder 3/4] WORKDIR /home/build/project 0.0s
=> ERROR [builder 4/4] RUN gradle build -x test 45.1s

[builder 4/4] RUN gradle build -x test:
1.292
1.292 Welcome to Gradle 7.3.3!
1.292
1.292 Here are the highlights of this release:
1.292 - Easily declare new test suites in Java projects
1.293 - Support for Java 17
1.293 - Support for Scala 3
1.293
1.294 For more details see https://docs.gradle.org/7.3.3/release-notes.html
1.295
1.577 Starting a Gradle Daemon (subsequent builds will be faster)
19.39
19.39 > Configure project :
19.39 Extracting SonarQube libraries (this may take a while)...
42.48
42.48 > Task :compileJava
42.48 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/BitbucketClientFactory.java:21: error: cannot access AlmSettingDto
42.48 import org.sonar.db.alm.setting.AlmSettingDto;
42.48 ^
42.48 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/alm/setting/AlmSettingDto.class)
42.48 class file has wrong version 61.0, should be 55.0
42.48 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.48 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/BitbucketClientFactory.java:22: error: cannot access ProjectAlmSettingDto
42.48 import org.sonar.db.alm.setting.ProjectAlmSettingDto;
42.48 ^
42.48 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/alm/setting/ProjectAlmSettingDto.class)
42.48 class file has wrong version 61.0, should be 55.0
42.48 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.48 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/BitbucketClientFactory.java:26: error: cannot find symbol
42.48 BitbucketClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.48 ^
42.48 symbol: class ProjectAlmSettingDto
42.48 location: interface BitbucketClientFactory
42.49 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/BitbucketClientFactory.java:26: error: cannot find symbol
42.49 BitbucketClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.49 ^
42.49 symbol: class AlmSettingDto
42.49 location: interface BitbucketClientFactory
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/DefaultBitbucketClientFactory.java:36: error: cannot access ALM
42.58 import org.sonar.db.alm.setting.ALM;
42.58 ^
42.58 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/alm/setting/ALM.class)
42.58 class file has wrong version 61.0, should be 55.0
42.58 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/DefaultBitbucketClientFactory.java:59: error: cannot find symbol
42.58 public BitbucketClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.58 ^
42.58 symbol: class ProjectAlmSettingDto
42.58 location: class DefaultBitbucketClientFactory
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/bitbucket/DefaultBitbucketClientFactory.java:59: error: cannot find symbol
42.58 public BitbucketClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.58 ^
42.58 symbol: class AlmSettingDto
42.58 location: class DefaultBitbucketClientFactory
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/gitlab/GitlabClientFactory.java:26: error: cannot find symbol
42.58 GitlabClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.58 ^
42.58 symbol: class ProjectAlmSettingDto
42.58 location: interface GitlabClientFactory
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/gitlab/GitlabClientFactory.java:26: error: cannot find symbol
42.58 GitlabClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.58 ^
42.58 symbol: class AlmSettingDto
42.58 location: interface GitlabClientFactory
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/gitlab/DefaultGitlabClientFactory.java:54: error: cannot find symbol
42.58 public GitlabClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.58 ^
42.58 symbol: class ProjectAlmSettingDto
42.58 location: class DefaultGitlabClientFactory
42.58 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/gitlab/DefaultGitlabClientFactory.java:54: error: cannot find symbol
42.58 public GitlabClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.58 ^
42.58 symbol: class AlmSettingDto
42.58 location: class DefaultGitlabClientFactory
42.68 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/github/DefaultGithubClientFactory.java:48: error: cannot find symbol
42.68 public GithubClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.68 ^
42.68 symbol: class ProjectAlmSettingDto
42.68 location: class DefaultGithubClientFactory
42.68 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/github/DefaultGithubClientFactory.java:48: error: cannot find symbol
42.68 public GithubClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.68 ^
42.68 symbol: class AlmSettingDto
42.68 location: class DefaultGithubClientFactory
42.68 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/github/GithubClientFactory.java:26: error: cannot find symbol
42.68 GithubClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.68 ^
42.68 symbol: class ProjectAlmSettingDto
42.68 location: interface GithubClientFactory
42.68 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/github/GithubClientFactory.java:26: error: cannot find symbol
42.68 GithubClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.68 ^
42.68 symbol: class AlmSettingDto
42.68 location: interface GithubClientFactory
42.68 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/azuredevops/AzureDevopsClientFactory.java:26: error: cannot find symbol
42.68 AzureDevopsClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.68 ^
42.68 symbol: class ProjectAlmSettingDto
42.69 location: interface AzureDevopsClientFactory
42.69 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/azuredevops/AzureDevopsClientFactory.java:26: error: cannot find symbol
42.69 AzureDevopsClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.69 ^
42.69 symbol: class AlmSettingDto
42.69 location: interface AzureDevopsClientFactory
42.69 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/azuredevops/DefaultAzureDevopsClientFactory.java:55: error: cannot find symbol
42.69 public AzureDevopsClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.69 ^
42.69 symbol: class ProjectAlmSettingDto
42.69 location: class DefaultAzureDevopsClientFactory
42.69 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/azuredevops/DefaultAzureDevopsClientFactory.java:55: error: cannot find symbol
42.69 public AzureDevopsClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {
42.69 ^
42.69 symbol: class AlmSettingDto
42.69 location: class DefaultAzureDevopsClientFactory
42.69 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/scanner/CommunityProjectBranchesLoader.java:28: error: cannot access ProjectBranchesParameters
42.69 import org.sonar.server.branch.ws.ProjectBranchesParameters;
42.69 ^
42.69 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/branch/ws/ProjectBranchesParameters.class)
42.69 class file has wrong version 61.0, should be 55.0
42.69 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchFeatureExtension.java:21: error: cannot access BranchFeatureExtension
42.78 import org.sonar.server.branch.BranchFeatureExtension;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/branch/BranchFeatureExtension.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchFeatureExtension.java:28: error: cannot find symbol
42.78 public class CommunityBranchFeatureExtension implements BranchFeatureExtension {
42.78 ^
42.78 symbol: class BranchFeatureExtension
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/MonoRepoFeature.java:23: error: cannot access SonarQubeFeature
42.78 import org.sonar.server.feature.SonarQubeFeature;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/feature/SonarQubeFeature.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/MonoRepoFeature.java:27: error: cannot find symbol
42.78 public class MonoRepoFeature implements SonarQubeFeature {
42.78 ^
42.78 symbol: class SonarQubeFeature
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityComponentKey.java:21: error: cannot access BranchSupport
42.78 import org.sonar.server.ce.queue.BranchSupport;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/ce/queue/BranchSupport.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityComponentKey.java:28: error: package BranchSupport does not exist
42.78 /package/ class CommunityComponentKey extends BranchSupport.ComponentKey {
42.78 ^
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:31: error: cannot access DbClient
42.78 import org.sonar.db.DbClient;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/DbClient.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:32: error: cannot access DbSession
42.78 import org.sonar.db.DbSession;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/DbSession.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:33: error: cannot access CeTaskCharacteristicDto
42.78 import org.sonar.db.ce.CeTaskCharacteristicDto;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/ce/CeTaskCharacteristicDto.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:34: error: cannot access BranchDto
42.78 import org.sonar.db.component.BranchDto;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/component/BranchDto.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:35: error: cannot access BranchType
42.78 import org.sonar.db.component.BranchType;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/component/BranchType.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:36: error: cannot access ComponentDto
42.78 import org.sonar.db.component.ComponentDto;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/component/ComponentDto.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:38: error: cannot access BranchSupportDelegate
42.78 import org.sonar.server.ce.queue.BranchSupportDelegate;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/ce/queue/BranchSupportDelegate.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:39: error: cannot access ProjectConfigurationLoader
42.78 import org.sonar.server.setting.ProjectConfigurationLoader;
42.78 ^
42.78 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/setting/ProjectConfigurationLoader.class)
42.78 class file has wrong version 61.0, should be 55.0
42.78 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.78 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:44: error: cannot find symbol
42.78 public class CommunityBranchSupportDelegate implements BranchSupportDelegate {
42.79 ^
42.79 symbol: class BranchSupportDelegate
42.79 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:47: error: cannot find symbol
42.79 private final DbClient dbClient;
42.79 ^
42.79 symbol: class DbClient
42.79 location: class CommunityBranchSupportDelegate
42.79 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:49: error: cannot find symbol
42.79 private final ProjectConfigurationLoader projectConfigurationLoader;
42.79 ^
42.79 symbol: class ProjectConfigurationLoader
42.79 location: class CommunityBranchSupportDelegate
42.79 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:51: error: cannot find symbol
42.79 public CommunityBranchSupportDelegate(UuidFactory uuidFactory, DbClient dbClient, Clock clock,
42.79 ^
42.79 symbol: class DbClient
42.79 location: class CommunityBranchSupportDelegate
42.80 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:52: error: cannot find symbol
42.80 ProjectConfigurationLoader projectConfigurationLoader) {
42.80 ^
42.80 symbol: class ProjectConfigurationLoader
42.80 location: class CommunityBranchSupportDelegate
42.81 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:87: error: cannot find symbol
42.81 public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.ComponentKey componentKey,
42.81 ^
42.81 symbol: class DbSession
42.81 location: class CommunityBranchSupportDelegate
42.81 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:87: error: package BranchSupport does not exist
42.81 public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.ComponentKey componentKey,
42.81 ^
42.81 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:88: error: cannot find symbol
42.81 ComponentDto mainComponentDto, BranchDto mainComponentBranchDto) {
42.81 ^
42.81 symbol: class ComponentDto
42.81 location: class CommunityBranchSupportDelegate
42.81 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:88: error: cannot find symbol
42.81 ComponentDto mainComponentDto, BranchDto mainComponentBranchDto) {
42.81 ^
42.81 symbol: class BranchDto
42.81 location: class CommunityBranchSupportDelegate
42.81 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java:87: error: cannot find symbol
42.82 public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.ComponentKey componentKey,
42.82 ^
42.82 symbol: class ComponentDto
42.82 location: class CommunityBranchSupportDelegate
42.82 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/AlmTypeMapper.java:30: error: cannot find symbol
42.82 public static AlmSettings.Alm toAlmWs(ALM alm) {
42.83 ^
42.83 symbol: class ALM
42.83 location: class AlmTypeMapper
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetAzureBindingAction.java:25: error: cannot access ComponentFinder
42.83 import org.sonar.server.component.ComponentFinder;
42.83 ^
42.83 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/component/ComponentFinder.class)
42.83 class file has wrong version 61.0, should be 55.0
42.83 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetAzureBindingAction.java:26: error: cannot access UserSession
42.83 import org.sonar.server.user.UserSession;
42.83 ^
42.83 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/user/UserSession.class)
42.83 class file has wrong version 61.0, should be 55.0
42.83 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:28: error: cannot access ProjectDto
42.83 import org.sonar.db.project.ProjectDto;
42.83 ^
42.83 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/db/project/ProjectDto.class)
42.83 class file has wrong version 61.0, should be 55.0
42.83 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:30: error: cannot access NotFoundException
42.83 import org.sonar.server.exceptions.NotFoundException;
42.83 ^
42.83 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/exceptions/NotFoundException.class)
42.83 class file has wrong version 61.0, should be 55.0
42.83 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:28: error: cannot access AlmSettingsWsAction
42.83 import org.sonar.server.almsettings.ws.AlmSettingsWsAction;
42.83 ^
42.83 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/almsettings/ws/AlmSettingsWsAction.class)
42.83 class file has wrong version 61.0, should be 55.0
42.83 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:32: error: cannot find symbol
42.83 public abstract class ProjectWsAction implements AlmSettingsWsAction {
42.83 ^
42.83 symbol: class AlmSettingsWsAction
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetAzureBindingAction.java:33: error: cannot find symbol
42.83 public SetAzureBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.83 ^
42.83 symbol: class DbClient
42.83 location: class SetAzureBindingAction
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetAzureBindingAction.java:33: error: cannot find symbol
42.83 public SetAzureBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.83 ^
42.83 symbol: class ComponentFinder
42.83 location: class SetAzureBindingAction
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetAzureBindingAction.java:33: error: cannot find symbol
42.83 public SetAzureBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.83 ^
42.83 symbol: class UserSession
42.83 location: class SetAzureBindingAction
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetAzureBindingAction.java:46: error: cannot find symbol
42.83 protected ProjectAlmSettingDto createProjectAlmSettingDto(String projectUuid, String settingsUuid,
42.83 ^
42.83 symbol: class ProjectAlmSettingDto
42.83 location: class SetAzureBindingAction
42.83 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:40: error: cannot find symbol
42.83 protected SetBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, String actionName) {
42.88 ^
42.88 symbol: class DbClient
42.88 location: class SetBindingAction
42.88 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:40: error: cannot find symbol
42.88 protected SetBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, String actionName) {
42.88 ^
42.88 symbol: class ComponentFinder
42.88 location: class SetBindingAction
42.88 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:40: error: cannot find symbol
42.88 protected SetBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, String actionName) {
42.88 ^
42.88 symbol: class UserSession
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:52: error: cannot find symbol
42.89 protected void handleProjectRequest(ProjectDto project, Request request, Response response, DbSession dbSession) {
42.89 ^
42.89 symbol: class ProjectDto
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:52: error: cannot find symbol
42.89 protected void handleProjectRequest(ProjectDto project, Request request, Response response, DbSession dbSession) {
42.89 ^
42.89 symbol: class DbSession
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:64: error: cannot find symbol
42.89 private static AlmSettingDto getAlmSetting(DbClient dbClient, DbSession dbSession, String almSetting) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:64: error: cannot find symbol
42.89 private static AlmSettingDto getAlmSetting(DbClient dbClient, DbSession dbSession, String almSetting) {
42.89 ^
42.89 symbol: class DbSession
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:64: error: cannot find symbol
42.89 private static AlmSettingDto getAlmSetting(DbClient dbClient, DbSession dbSession, String almSetting) {
42.89 ^
42.89 symbol: class AlmSettingDto
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetBindingAction.java:70: error: cannot find symbol
42.89 protected abstract ProjectAlmSettingDto createProjectAlmSettingDto(String projectUuid, String settingsUuid, boolean monoRepo, Request request);
42.89 ^
42.89 symbol: class ProjectAlmSettingDto
42.89 location: class SetBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:37: error: cannot find symbol
42.89 private final DbClient dbClient;
42.89 ^
42.89 symbol: class DbClient
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:38: error: cannot find symbol
42.89 private final ComponentFinder componentFinder;
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:39: error: cannot find symbol
42.89 private final UserSession userSession;
42.89 ^
42.89 symbol: class UserSession
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:42: error: cannot find symbol
42.89 protected ProjectWsAction(String actionName, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:42: error: cannot find symbol
42.89 protected ProjectWsAction(String actionName, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:42: error: cannot find symbol
42.89 protected ProjectWsAction(String actionName, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class UserSession
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:46: error: cannot find symbol
42.89 protected ProjectWsAction(String actionName, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, String permission) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:46: error: cannot find symbol
42.89 protected ProjectWsAction(String actionName, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, String permission) {
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:46: error: cannot find symbol
42.89 protected ProjectWsAction(String actionName, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, String permission) {
42.89 ^
42.89 symbol: class UserSession
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:77: error: cannot find symbol
42.89 protected abstract void handleProjectRequest(ProjectDto project, Request request, Response response, DbSession dbSession);
42.89 ^
42.89 symbol: class ProjectDto
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:77: error: cannot find symbol
42.89 protected abstract void handleProjectRequest(ProjectDto project, Request request, Response response, DbSession dbSession);
42.89 ^
42.89 symbol: class DbSession
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ProjectWsAction.java:79: error: cannot find symbol
42.89 protected DbClient getDbClient() {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class ProjectWsAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:34: error: cannot access BadConfigurationException
42.89 import org.sonar.server.exceptions.BadConfigurationException;
42.89 ^
42.89 bad class file: /home/build/project/sonarqube-lib/sonarqube-10.0.0.68432/lib/sonar-application-10.0.0.68432.jar(/org/sonar/server/exceptions/BadConfigurationException.class)
42.89 class file has wrong version 61.0, should be 55.0
42.89 Please remove or make sure it appears in the correct subdirectory of the classpath.
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:43: error: cannot find symbol
42.89 public ValidateBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, List validators) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:43: error: cannot find symbol
42.89 public ValidateBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, List validators) {
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:43: error: cannot find symbol
42.89 public ValidateBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession, List validators) {
42.89 ^
42.89 symbol: class UserSession
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:54: error: cannot find symbol
42.89 protected void handleProjectRequest(ProjectDto project, Request request, Response response, DbSession dbSession) {
42.89 ^
42.89 symbol: class ProjectDto
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:54: error: cannot find symbol
42.89 protected void handleProjectRequest(ProjectDto project, Request request, Response response, DbSession dbSession) {
42.89 ^
42.89 symbol: class DbSession
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:61: error: cannot find symbol
42.89 private static void validateProject(ProjectAlmSettingDto projectAlmSettingDto, DbSession dbSession, DbClient dbClient, List validators) {
42.89 ^
42.89 symbol: class ProjectAlmSettingDto
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:61: error: cannot find symbol
42.89 private static void validateProject(ProjectAlmSettingDto projectAlmSettingDto, DbSession dbSession, DbClient dbClient, List validators) {
42.89 ^
42.89 symbol: class DbSession
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/ValidateBindingAction.java:61: error: cannot find symbol
42.89 private static void validateProject(ProjectAlmSettingDto projectAlmSettingDto, DbSession dbSession, DbClient dbClient, List validators) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class ValidateBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/validator/Validator.java:31: error: cannot find symbol
42.89 void validate(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.89 ^
42.89 symbol: class ProjectAlmSettingDto
42.89 location: interface Validator
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/validator/Validator.java:31: error: cannot find symbol
42.89 void validate(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto);
42.89 ^
42.89 symbol: class AlmSettingDto
42.89 location: interface Validator
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/validator/Validator.java:33: error: cannot find symbol
42.89 List alm();
42.89 ^
42.89 symbol: class ALM
42.89 location: interface Validator
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGitlabBindingAction.java:31: error: cannot find symbol
42.89 public SetGitlabBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class SetGitlabBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGitlabBindingAction.java:31: error: cannot find symbol
42.89 public SetGitlabBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class SetGitlabBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGitlabBindingAction.java:31: error: cannot find symbol
42.89 public SetGitlabBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class UserSession
42.89 location: class SetGitlabBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGitlabBindingAction.java:42: error: cannot find symbol
42.89 protected ProjectAlmSettingDto createProjectAlmSettingDto(String projectUuid, String settingsUuid,
42.89 ^
42.89 symbol: class ProjectAlmSettingDto
42.89 location: class SetGitlabBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGithubBindingAction.java:33: error: cannot find symbol
42.89 public SetGithubBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class SetGithubBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGithubBindingAction.java:33: error: cannot find symbol
42.89 public SetGithubBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class SetGithubBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGithubBindingAction.java:33: error: cannot find symbol
42.89 public SetGithubBindingAction(DbClient dbClient, ComponentFinder componentFinder, UserSession userSession) {
42.89 ^
42.89 symbol: class UserSession
42.89 location: class SetGithubBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/SetGithubBindingAction.java:45: error: cannot find symbol
42.89 protected ProjectAlmSettingDto createProjectAlmSettingDto(String projectUuid, String settingsUuid, boolean monoRepo, Request request) {
42.89 ^
42.89 symbol: class ProjectAlmSettingDto
42.89 location: class SetGithubBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/DeleteBindingAction.java:32: error: cannot find symbol
42.89 private final DbClient dbClient;
42.89 ^
42.89 symbol: class DbClient
42.89 location: class DeleteBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/DeleteBindingAction.java:34: error: cannot find symbol
42.89 public DeleteBindingAction(DbClient dbClient, UserSession userSession, ComponentFinder componentFinder) {
42.89 ^
42.89 symbol: class DbClient
42.89 location: class DeleteBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/DeleteBindingAction.java:34: error: cannot find symbol
42.89 public DeleteBindingAction(DbClient dbClient, UserSession userSession, ComponentFinder componentFinder) {
42.89 ^
42.89 symbol: class UserSession
42.89 location: class DeleteBindingAction
42.89 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/binding/action/DeleteBindingAction.java:34: error: cannot find symbol
42.89 public DeleteBindingAction(DbClient dbClient, UserSession userSession, ComponentFinder componentFinder) {
42.89 ^
42.89 symbol: class ComponentFinder
42.89 location: class DeleteBindingAction
43.88 /home/build/project/src/main/java/com/github/mc1arke/sonarqube/plugin/almclient/azuredevops/DefaultAzureDevopsClientFactory.java:47: warning: [deprecation] configure(MapperFeature,boolean) in ObjectMapper has been deprecated
43.88 .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true)
43.88 ^
44.38 Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
44.38 100 errors
44.38 1 warning
44.38
44.38 > Task :compileJava FAILED
44.48
44.48 FAILURE: Build failed with an exception.
44.48
44.48 * What went wrong:
44.48 Execution failed for task ':compileJava'.
44.48 > Compilation failed; see the compiler error output for details.
44.48
44.48 * Try:
44.48 > Run with --stacktrace option to get the stack trace.
44.49 > Run with --info or --debug option to get more log output.
44.49 > Run with --scan to get full insights.
44.49
44.49 * Get more help at https://help.gradle.org
44.49
44.49 BUILD FAILED in 43s
44.49 1 actionable task: 1 executed


Dockerfile:7

5 | COPY . /home/build/project
6 | WORKDIR /home/build/project
7 | >>> RUN gradle build -x test
8 |
9 | FROM sonarqube:${SONARQUBE_VERSION}

ERROR: failed to solve: process "/bin/sh -c gradle build -x test" did not complete successfully: exit code: 1

@mgexm mgexm added the bug Something isn't working label Aug 17, 2023
@aliluyahoho
Copy link

Please try with jdk17. @mgexm


Gradle 8.4

Build time: 2023-10-04 20:52:13 UTC
Revision: e9251e572c9bd1d01e503a0dfdf43aedaeecdc3f

Kotlin: 1.9.10
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 17.0.9 (Oracle Corporation 17.0.9+11-LTS-201)
OS: Mac OS X 13.1 aarch64

@mc1arke
Copy link
Owner

mc1arke commented Dec 29, 2023

Yes, the 10.0 build requires Java 17, but wasn't reflected in the Dockerfile. This has been fixed for 10.1 with #838

@mc1arke mc1arke closed this as completed Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants