diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 452fd98..0020c74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,9 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - # Keep this list as: all supported LTS JDKs, the latest GA JDK, and the latest EA JDK (if possible) - java: [ 11, 17, 21, 22 ] + # Keep this list as: all supported LTS JDKs, the latest GA JDK, and optionally the latest EA JDK (if available). + # https://www.oracle.com/java/technologies/java-se-support-roadmap.html + java: [ 11, 17, 21, 23 ] steps: - name: Checkout uses: actions/checkout@v4 @@ -24,12 +25,6 @@ jobs: with: distribution: temurin java-version: ${{ matrix.java }} - - name: Cache local Maven repository - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - name: Build with Maven run: mvn --batch-mode --no-transfer-progress verify diff --git a/bin/release_to_local_repo.sh b/bin/release_to_local_repo.sh deleted file mode 100755 index 379a1b5..0000000 --- a/bin/release_to_local_repo.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - - -# Uploads the artifacts in ./dist (JAR and src JAR) to the local repo ($HOME/.m2/jboss-repository) -# so we can do local testing before uploading to the Nexus maven repo - - -# Author: Bela Ban - -DIR=`dirname $0` -DIST=$DIR/../dist/ -POM=$DIR/../pom.xml - -JAR=`find $DIST -name "native-*.jar" | grep -v source` -SRC_JAR=`find $DIST -name "native-*.jar" | grep source` - -REPO=file:$HOME/.m2/jboss-repository -FLAGS="-Dpackaging=jar -DrepositoryId=jboss-releases-repository" - - -echo "Deploying $JAR to $REPO" -mvn deploy:deploy-file -Dfile=$JAR -Durl=$REPO -DpomFile=$POM $FLAGS - - -echo "Deploying $SRC_JAR to $REPO" -mvn deploy:deploy-file -Dfile=$SRC_JAR -Durl=$REPO -DpomFile=$POM -Dclassifier=sources $FLAGS - diff --git a/bin/release_to_nexus.sh b/bin/release_to_nexus.sh deleted file mode 100755 index 074434a..0000000 --- a/bin/release_to_nexus.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - - -## -## This script releases a new JGroups version to Nexus. It generates the local artifacts (in target/staging), uploads -## them to Nexus staging, the closes and releases the upload. -## Note that if there is an existing artifact in Nexus, the script will fail ! -## - -# Author: Bela Ban - - -# DIST=../dist -POM=`dirname $0`/../pom.xml - -# JAR=`find $DIST -name "native-*.jar" | grep -v source` -# SRC_JAR=`find $DIST -name "native-*.jar" | grep source` - -## Release directly, skipping the staging repo -## REPO=https://repository.jboss.org/nexus/content/repositories/releases/ - -# REPO=https://repository.jboss.org/nexus/service/local/staging/deploy/maven2 -# FLAGS="-Dpackaging=jar -DrepositoryId=jboss-releases-repository" - - -# echo "Deploying $JAR to $REPO" -# mvn deploy:deploy-file -Dfile=$JAR -Durl=$REPO -DpomFile=$POM $FLAGS - - -# echo "Deploying $SRC_JAR to $REPO" -# mvn deploy:deploy-file -Dfile=$SRC_JAR -Durl=$REPO -DpomFile=$POM -Dclassifier=sources $FLAGS - -mvn -f $POM -Dmaven.test.skip=true deploy -