Skip to content

Commit

Permalink
⬆️ bump deps at 2.7.0ss
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Jan 31, 2024
1 parent ce6ce93 commit 1fdfa90
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Release-To-OssRh
run-name: Release ${{github.ref_name}} by @${{ github.event_name }}
run-name: Release ${{ github.ref_name }} by @${{ github.event_name }}

on:
workflow_dispatch:
Expand All @@ -26,7 +26,9 @@ on:
required: false
release:
types: [published]

push:
branches:
- 'main'
jobs:
release:
name: Release to Sonatype
Expand All @@ -36,7 +38,7 @@ jobs:
TEST_VERBOSE: ${{ inputs.testVerbose }}

steps:
- name: Checkout ${{github.event.release.tag_name}}
- name: Checkout ${{ github.event.release.tag_name }}
uses: actions/checkout@v4
with:
fetch-depth: 10
Expand All @@ -49,13 +51,13 @@ jobs:
path: |
~/.asdf/
~/.m2/repository/
key: asdf-m2-repo-${{hashFiles('.tool-versions')}}
key: asdf-m2-repo-${{ hashFiles('pom.xml') }}

## install jdk and maven
- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
with:
skip_install: ${{steps.cache-sdk-repo.outputs.cache-hit == 'true'}}
skip_install: ${{ steps.cache-sdk-repo.outputs.cache-hit == 'true' }}

## write settings.xml
- name: Maven settings.xml
Expand All @@ -68,16 +70,21 @@ jobs:
_opt=$(git describe --tags --exact-match 2>/dev/null || true)
if [ "$_opt" != "" ]; then
_opt="-Drevision=$_opt"
echo $_opt
echo "MVN_REVISION=$_opt"
echo "MVN_REVISION=$_opt" >> "$GITHUB_OUTPUT"
fi
_ver=$(mvn --quiet --non-recursive -DforceStdout -Dexpression=project.version $_opt help:evaluate)
echo $_ver
echo "WINGS_VERSION=$_ver"
echo "WINGS_VERSION=$_ver" >> "$GITHUB_OUTPUT"
echo "MVN_COVERAGE=${{ inputs.testCoverReport || github.event_name == 'release' }}" >> "$GITHUB_OUTPUT"
echo "MVN_DEPLOYRH=${{ inputs.deployOssrh || github.event_name == 'release' }}" >> "$GITHUB_OUTPUT"
_cov=${{ inputs.testCoverReport || github.event_name == 'push' }}
echo "MVN_COVERAGE=$_cov"
echo "MVN_COVERAGE=$_cov" >> "$GITHUB_OUTPUT"
_drh=${{ inputs.deployOssrh || github.event_name == 'release' }}
echo "MVN_DEPLOYRH=$_drh"
echo "MVN_DEPLOYRH=$_drh" >> "$GITHUB_OUTPUT"
mvn -v
git --no-pager log --graph -10 --pretty=format:'%H - %ai %d %s'
Expand All @@ -98,7 +105,7 @@ jobs:
## report if not release
- name: Test Coverage ${{ steps.settings.outputs.WINGS_VERSION }} ${{ steps.settings.outputs.GIT_BRANCH }}
if: steps.settings.outputs.MVN_COVERAGE
if: steps.settings.outputs.MVN_COVERAGE == 'true'
run: >
mvn
-P coverage
Expand All @@ -109,15 +116,15 @@ jobs:
JAVA_HOME: ${{ steps.settings.outputs.JAVA_HOME }}
## import gpp private key
- name: Import GPG key
if: steps.settings.outputs.MVN_DEPLOYRH
if: steps.settings.outputs.MVN_DEPLOYRH == 'true'
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.MVN_GPG_SKEY }}
passphrase: ${{ secrets.MVN_GPG_PASS }}

## maven deploy
- name: Deploy ${{ steps.settings.outputs.WINGS_VERSION }} ${{ steps.settings.outputs.GIT_BRANCH }}
if: steps.settings.outputs.MVN_DEPLOYRH
if: steps.settings.outputs.MVN_DEPLOYRH == 'true'
run: >
mvn
-P ossrh
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</issueManagement>

<properties>
<revision>2.6.5-SNAPSHOT</revision>
<revision>2.7.0-SNAPSHOT</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -72,8 +72,8 @@
<!-- test -->
<junit.version>5.10.1</junit.version>
<jmh.version>1.37</jmh.version>
<mysql.version>8.2.0</mysql.version>
<fastjson2.version>2.0.44</fastjson2.version>
<mysql.version>8.3.0</mysql.version>
<fastjson2.version>2.0.45</fastjson2.version>
<sulky-ulid.version>8.3.0</sulky-ulid.version>
</properties>

Expand Down Expand Up @@ -175,7 +175,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.3</version>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -235,7 +235,7 @@
<!-- https://www.mojohaus.org/flatten-maven-plugin/flatten-mojo.html -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.5.0</version>
<version>1.6.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
Expand Down

0 comments on commit 1fdfa90

Please sign in to comment.