-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yml
44 lines (36 loc) · 1.18 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Java Gradle CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
machine:
image: ubuntu-2204:2023.04.2
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: Install SDK 21
command: wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz &&
tar -xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz &&
sudo mv jdk-21*/ /opt/jdk21 &&
export JAVA_HOME=/opt/jdk21 &&
export PATH=$PATH:$JAVA_HOME/bin
- run:
name: Build
command: export JAVA_HOME=/opt/jdk21 &&
export PATH=$PATH:$JAVA_HOME/bin &&
mvn -B -DskipTests clean package
- run:
name: Test
command: export JAVA_HOME=/opt/jdk21 &&
export PATH=$PATH:$JAVA_HOME/bin &&
mvn test
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}