feature/setup-workflow-pipeline: add lombok, add gitea workflow #2
@ -109,13 +109,26 @@ jobs:
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Install OpenJDK 21
|
||||
run: |
|
||||
# Ensure apt and necessary tools are available
|
||||
apt-get update -y
|
||||
apt-get install -y apt-transport-https ca-certificates curl gnupg wget software-properties-common
|
||||
|
||||
# Download and install OpenJDK 21 (Oracle version)
|
||||
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
|
||||
|
||||
# Install the downloaded package
|
||||
apt install -y ./jdk-21_linux-x64_bin.deb
|
||||
|
||||
# Verify installation
|
||||
java -version
|
||||
|
||||
- uses: actions/checkout@v5
|
||||
- name: Set up JDK 21 for x64
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
#distribution: 'oracle'
|
||||
distribution: 'corretto'
|
||||
#distribution: 'temurin'
|
||||
architecture: x64
|
||||
cache: maven
|
||||
|
||||
Reference in New Issue
Block a user