Skip to content

Commit

Permalink
feat(maven): refine pom for publish by action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice52 committed Sep 18, 2023
1 parent ef61c0b commit 9a30fda
Show file tree
Hide file tree
Showing 47 changed files with 129 additions and 137 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Maven Central Repo Deployment

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
steps:

- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Maven Central Repo
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: sonatype-nexus-staging
server-username: ${{ secrets.PUBLISH_OSSRH_USER }}
server-password: ${{ secrets.PUBLISH_OSSRH_PASSWORD }}
gpg-passphrase: ${{ secrets.PUBLISH_GPG_PASSWORD }}

- name: Publish to Maven Central Repo
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.PUBLISH_GPG_SECRET }}
gpg_passphrase: ${{ secrets.PUBLISH_GPG_PASSWORD }}
nexus_username: ${{ secrets.PUBLISH_OSSRH_USER }}
nexus_password: ${{ secrets.PUBLISH_OSSRH_PASSWORD }}
2 changes: 1 addition & 1 deletion common-actuator/common-actuator-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-actuator</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common-actuator-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion common-actuator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion common-api-inject/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-crypt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-database/database-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-database</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-database/database-mybatis-plus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-database</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-database/database-mybatis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-database</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion common-feign/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-mq/common-mq-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-mq</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-mq/common-mq-receiver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-mq</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions common-mq/common-mq-sender/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-mq</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-uid</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion common-mq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion common-openapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-oss/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
16 changes: 0 additions & 16 deletions common-security-v2/pom.xml

This file was deleted.

5 changes: 0 additions & 5 deletions common-security-v2/readme.md

This file was deleted.

2 changes: 1 addition & 1 deletion common-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-swagger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion common-swagger/swagger-2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-swagger</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-swagger/swagger-3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-swagger</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 1 addition & 2 deletions common-token/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<relativePath>../pom.xml</relativePath>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common-uid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion custom-test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /${MODULE_NAME}

EXPOSE 8080

COPY target/${MODULE_NAME}-0.0.1.jar app.jar
COPY target/${MODULE_NAME}-0.0.2.jar app.jar

RUN echo -e "#!/bin/sh\njava ${JAVA_OPTS} -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -DJASYPT_ENCRYPTOR_PASSWORD=${JASYPT_ENCRYPTOR_PASSWORD} -Dsun.net.httpserver.nodelay=true -jar ./app.jar" > ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
Expand Down
15 changes: 0 additions & 15 deletions custom-test/base-identity-server/pom.xml

This file was deleted.

2 changes: 1 addition & 1 deletion custom-test/custom-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions custom-test/custom-kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -16,7 +16,7 @@
<!-- kotlin -->
<kotlin.compiler.incremental>false</kotlin.compiler.incremental>
<kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
<kotlin.version>1.7.21</kotlin.version>
<kotlin.version>1.9.0</kotlin.version>
<kotlin.code.style>official</kotlin.code.style>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion custom-test/custom-oss/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion custom-test/custom-syntax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion custom-test/custom-test-crypt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>custom-test-crypt</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion custom-test/custom-test-database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion custom-test/custom-test-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion custom-test/custom-test-log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>custom-test</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>custom-test-log</artifactId>
Expand Down
Loading

0 comments on commit 9a30fda

Please sign in to comment.