mirror of
https://github.com/valitydev/library-parent-pom.git
synced 2024-11-06 02:45:17 +00:00
migrate to java 17 (#27)
This commit is contained in:
parent
082eaf22e9
commit
ddc6e6aa24
2
.github/settings.yml
vendored
Normal file
2
.github/settings.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
|
||||||
|
_extends: .github
|
10
.github/workflows/basic-linters.yml
vendored
Normal file
10
.github/workflows/basic-linters.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: Vality basic linters
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
uses: valitydev/base-workflows/.github/workflows/basic-linters.yml@v1
|
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build Artifact
|
name: Maven Build Artifact
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -7,13 +7,4 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
uses: valitydev/java-workflow/.github/workflows/maven-library-build.yml@v2
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Set up Maven Central Repository
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
java-version: '15'
|
|
||||||
distribution: 'adopt'
|
|
||||||
- name: Build package
|
|
||||||
run: mvn --batch-mode clean compile
|
|
||||||
|
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Deploy package
|
name: Maven Deploy Artifact
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -8,15 +8,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-20.04
|
uses: valitydev/java-workflow/.github/workflows/maven-library-deploy.yml@v2
|
||||||
steps:
|
secrets:
|
||||||
- name: Checkout Repo
|
server-username: ${{ secrets.OSSRH_USERNAME }}
|
||||||
uses: actions/checkout@v2
|
server-password: ${{ secrets.OSSRH_TOKEN }}
|
||||||
|
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
|
||||||
- name: Deploy package
|
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
|
||||||
uses: valitydev/action-deploy-jdk-package@v1.0.18
|
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
|
||||||
with:
|
|
||||||
server-username: ${{ secrets.OSSRH_USERNAME }}
|
|
||||||
server-password: ${{ secrets.OSSRH_TOKEN }}
|
|
||||||
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
|
|
||||||
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
|
|
||||||
|
14
pom.xml
14
pom.xml
@ -3,10 +3,12 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
|
||||||
<groupId>dev.vality</groupId>
|
<groupId>dev.vality</groupId>
|
||||||
<artifactId>library-parent-pom</artifactId>
|
<artifactId>library-parent-pom</artifactId>
|
||||||
<version>1.0.3</version>
|
<version>2.0.0</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<name>Vality parent</name>
|
<name>Vality parent</name>
|
||||||
<description>Vality library parent pom</description>
|
<description>Vality library parent pom</description>
|
||||||
<url>https://github.com/valitydev/library-parent-pom</url>
|
<url>https://github.com/valitydev/library-parent-pom</url>
|
||||||
@ -33,8 +35,8 @@
|
|||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>15</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>15</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<pubRepoId>ossrh</pubRepoId>
|
<pubRepoId>ossrh</pubRepoId>
|
||||||
<pubRepo>https://s01.oss.sonatype.org/content/repositories/releases</pubRepo>
|
<pubRepo>https://s01.oss.sonatype.org/content/repositories/releases</pubRepo>
|
||||||
@ -140,12 +142,12 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
<version>3.2.0</version>
|
<version>3.2.1</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.puppycrawl.tools</groupId>
|
<groupId>com.puppycrawl.tools</groupId>
|
||||||
<artifactId>checkstyle</artifactId>
|
<artifactId>checkstyle</artifactId>
|
||||||
<version>9.3</version>
|
<version>10.6.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<executions>
|
<executions>
|
||||||
|
Loading…
Reference in New Issue
Block a user