Skip to content

Commit

Permalink
Issue #13970: Update CI to have Maven Version 3.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush kumar sadangi authored and romani committed Dec 1, 2023
1 parent e392598 commit f059eb4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ workflows:
jobs:
- validate-with-maven-script:
name: "releasenotes-builder"
image-name: &custom_img "checkstyle/jdk-11-groovy-git-mvn:11.0.13__3.0.9__2.25.1__3.6.3"
image-name: &custom_img "checkstyle/jdk-11-groovy-git-mvn:11.0.20.1__2.4.21__2.42.0__3.9.5"
command: "./.ci/validation.sh releasenotes-builder"
- validate-with-maven-script:
name: "patch-diff-report-tool"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
##################### Using official groovy image ######################
FROM groovy:jdk11
##################### End of images used ###############################

## Changing user to root to get access to /var/lib/dpkg/lock-frontend ##
USER root
##################### End of Change User ###############################

##################### Installing Maven and git #########################
RUN apt-get update \
&& echo "Installing maven and git dependencies" \
&& apt-get install --yes --no-install-recommends \
git \
maven
##################### End of install and Dockerfile ####################
FROM cimg/base:2023.10

# ca-certificates-java must be installed AND configured before java + groovy installation
RUN sudo apt update && \
sudo apt install ca-certificates-java && \
sudo apt install openjdk-11-jdk groovy jq -y

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 \
GROOVY_HOME=/usr/share/groovy \
PATH=$GROOVY_HOME/bin:$PATH

ENV MAVEN_VERSION=3.9.5 \
PATH=/opt/apache-maven/bin:$PATH

RUN MAVEN_3_URL=https://www.apache.org/dist/maven/maven-3 && \
MAVEN_VERSION_URL=$MAVEN_VERSION/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz && \
export URL=${MAVEN_3_URL}/${MAVEN_VERSION_URL} && \
curl -sSL --fail --retry 3 $URL -o apache-maven.tar.gz && \
sudo tar -xzf apache-maven.tar.gz -C /opt/ && \
rm apache-maven.tar.gz && \
sudo ln -s /opt/apache-maven-* /opt/apache-maven && \
mvn --version

0 comments on commit f059eb4

Please sign in to comment.