1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Checkout repository
15- uses : actions/checkout@v2
15+ uses : actions/checkout@v4
1616 - name : Compute short sha1
1717 run : echo "GITHUB_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
1818 - name : Setup git user
@@ -24,14 +24,16 @@ jobs:
2424 git config --global user.name "Kill Bill core team"
2525 git config --global url."https://${BUILD_USER}:${BUILD_TOKEN}@github.com/".insteadOf "git@github.com:"
2626 - name : Configure Java
27- uses : actions/setup-java@v1
27+ uses : actions/setup-java@v4
2828 with :
29- java-version : 8
29+ java-version : 21
30+ distribution : temurin
3031 - name : Configure Sonatype mirror
31- uses : s4u/maven-settings-action@v2.3 .0
32- # Go to Sonatype directly to avoid delay syncs (could get rid of this if actions/setup-java were to support mirrors) .
32+ uses : s4u/maven-settings-action@v4.0 .0
33+ # Resolve release dependencies from Central and snapshot killbill-oss-parent builds from Sonatype .
3334 with :
34- mirrors : ' [{"id": "oss-releases", "name": "Sonatype releases", "mirrorOf": "*", "url": "https://oss.sonatype.org/content/repositories/releases/"}]'
35+ sonatypeSnapshots : true
36+ githubServer : false
3537 - name : Update maven version
3638 run : |
3739 plugin_version=$(mvn ${MAVEN_FLAGS} help:evaluate -Dexpression=project.version -q -DforceStdout | cut -d - -f 1)
4042 run : |
4143 mvn ${MAVEN_FLAGS} clean install -DskipTests=true -Dgpg.skip=true -Dcheck.skip-rat=true -Dcheck.skip-spotbugs=true
4244 - name : Configure settings.xml for release
43- uses : actions/setup-java@v1
45+ uses : actions/setup-java@v4
4446 with :
45- java-version : 8
47+ java-version : 21
48+ distribution : temurin
4649 server-id : ${{ secrets.CLOUDSMITH_REPO }}
4750 server-username : CLOUDSMITH_USER
4851 server-password : CLOUDSMITH_API_KEY
@@ -57,15 +60,15 @@ jobs:
5760 run : |
5861 GROUP_ID=org.kill-bill.billing.plugin.java
5962 VERSION=$(mvn ${MAVEN_FLAGS} help:evaluate -Dexpression=project.version -q -DforceStdout)
60- FILE=avatax -plugin-$VERSION.jar
63+ FILE=gocardless -plugin-$VERSION.jar
6164 # Make sure the current pom.xml file isn't uploaded
6265 cp ./target/$FILE /var/tmp/
6366 cd /var/tmp
6467 mvn ${MAVEN_FLAGS} deploy:deploy-file -Dfile=$FILE \
6568 -DrepositoryId=$CLOUDSMITH_REPO \
6669 -Durl=https://maven.cloudsmith.io/killbill/$CLOUDSMITH_REPO \
6770 -DgroupId=$GROUP_ID \
68- -DartifactId=avatax -plugin \
71+ -DartifactId=gocardless -plugin \
6972 -Dversion=$VERSION \
7073 -Dpackaging=jar \
7174 -DgeneratePom=true \
0 commit comments