Skip to content

Commit

Permalink
#782: Fix container build for Sonarqube 10.1
Browse files Browse the repository at this point in the history
Sonarqube 10.1 includes classes compiled with a Java 17 target, so the
plugin fails to compile in the container build that uses Java 11. The
build container is therefore being bumped to Java 17, and the
environment file configured to pin to Sonarqube 10.1 to allow repeated
builds.
  • Loading branch information
mc1arke committed Dec 29, 2023
1 parent 47899e8 commit bcb10bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The Sonarqube base image. 'latest' if building locally, '8.5-community' if targeting a specific version
SONARQUBE_VERSION=latest
SONARQUBE_VERSION=10.1-community

# The name of the Dockerfile to run. 'Dockerfile' is building locally, 'release.Dockerfile' if building the release image
DOCKERFILE=Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG SONARQUBE_VERSION

FROM gradle:7.3.3-jdk11-alpine as builder
FROM gradle:7.3.3-jdk17-alpine as builder

COPY . /home/build/project
WORKDIR /home/build/project
Expand Down

0 comments on commit bcb10bc

Please sign in to comment.