feature/setup-workflow-pipeline: add lombok, add gitea workflow #2
@ -109,13 +109,26 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
shell: bash
|
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
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 21 for x64
|
- name: Set up JDK 21 for x64
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
#distribution: 'oracle'
|
|
||||||
distribution: 'corretto'
|
|
||||||
#distribution: 'temurin'
|
#distribution: 'temurin'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|||||||
Reference in New Issue
Block a user