Skip to content

Commit

Permalink
update depndencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Nov 26, 2023
1 parent 5f8777c commit a2b7cb7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 71 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,45 @@ name: Deploy

on:
push:
branches: [ master , development]
branches: [ master , development ]

jobs:
verify:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
java-version: [ 8, 11 ]
java-version: [ 11 ]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Java and Maven
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
- run: mvn verify
distribution: 'temurin'
- run: mvn verify -B -e

release:
needs: verify
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Java and Maven
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
maven_args: -Dci=true
distribution: 'temurin'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
- id: install-secret-key
name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
- name: publish to snapshot
run: mvn --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
env:
SONATYPE_USERNAME: ${{ secrets.nexus_username }}
SONATYPE_PASSWORD: ${{ secrets.nexus_password }}
63 changes: 10 additions & 53 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
<properties>
<snapshot.version>HEAD-SNAPSHOT</snapshot.version>
<next.release.version>1.0.4</next.release.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<maven.compiler.plugin>3.8.1</maven.compiler.plugin>
<maven.compiler.plugin>3.11.0</maven.compiler.plugin>
<maven.source.plugin>3.0.1</maven.source.plugin>
<maven.javadoc.plugin>2.10.4</maven.javadoc.plugin>
<maven.gpg.plugin>1.6</maven.gpg.plugin>
Expand All @@ -76,12 +76,12 @@
<maven.install.plugin>3.0.0-M1</maven.install.plugin>
<maven.license.plugin>3.0</maven.license.plugin>
<maven.surfire.plugin>3.0.0-M1</maven.surfire.plugin>
<maven.gwt.plugin>1.0.0</maven.gwt.plugin>
<elemental2.version>1.1.0</elemental2.version>
<maven.gwt.plugin>1.1.0</maven.gwt.plugin>
<elemental2.version>1.2.1</elemental2.version>

<auto.service.version>1.0-rc7</auto.service.version>
<auto.service.version>1.1.1</auto.service.version>
<javapoet.version>1.13.0</javapoet.version>
<junit.version>4.13.1</junit.version>
<junit.version>4.13.2</junit.version>
<assertj.version>3.18.1</assertj.version>
<slf4j.version>1.7.30</slf4j.version>

Expand Down Expand Up @@ -119,13 +119,13 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.8.0</version>
<version>2.14.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.11</version>
<version>3.13.0</version>
</dependency>

</dependencies>
Expand Down Expand Up @@ -224,8 +224,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<release>11</release>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -294,32 +293,6 @@
</build>

<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>production</id>
<activation>
Expand All @@ -330,22 +303,6 @@
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down

0 comments on commit a2b7cb7

Please sign in to comment.