Skip to content

Commit

Permalink
🔖 Releasing / Version tags. 0.3.0 适配 springBoot3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed Dec 6, 2022
1 parent b0ad5fd commit 389e029
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install -Dmaven.test.skip=true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/oss-release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: maven

- name: Setup Maven Central
uses: actions/setup-java@v3
with: # overwrite settings.xml
java-version: '11'
java-version: '17'
distribution: 'adopt'
server-id: sonatype
server-username: OSSRH_USERNAME
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/oss-snapshot-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: maven

- name: Setup Maven Central
uses: actions/setup-java@v3
with: # overwrite settings.xml
java-version: '11'
java-version: '17'
distribution: 'adopt'
server-id: sonatype
server-username: OSSRH_USERNAME
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ key=ip+url+args

- 1. 引入依赖

| 版本 | 支持 |
|-------|--|
| 0.3.0 | 适配 SpringBoot3.x |
| 0.1.0 | 适配 SpringBoot2.x |

```java
<dependency>
<groupId>com.pig4cloud.plugin</groupId>
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>idempotent-spring-boot-starter</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.3.0</version>
<name>idempotent</name>
<description>An idempotent solution</description>
<url>https://pig4cloud.com</url>
Expand Down Expand Up @@ -39,7 +39,7 @@
<java.version>17</java.version>
<mica.version>3.0.0</mica.version>
<redisson.version>3.18.1</redisson.version>
<spring.checkstyle.plugin>0.0.29</spring.checkstyle.plugin>
<spring.checkstyle.plugin>0.0.32</spring.checkstyle.plugin>
</properties>

<dependencies>
Expand Down Expand Up @@ -109,14 +109,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>3.3.2</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<additionalparam>-Xdoclint:none</additionalparam>
<doclint>none</doclint>
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
<executions>
Expand Down Expand Up @@ -152,7 +152,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype</serverId>
Expand Down Expand Up @@ -193,14 +193,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>3.3.2</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<additionalparam>-Xdoclint:none</additionalparam>
<doclint>none</doclint>
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
<executions>
Expand Down Expand Up @@ -236,7 +236,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype</serverId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.pig4cloud.plugin.idempotent.aspect.IdempotentAspect;
import com.pig4cloud.plugin.idempotent.expression.ExpressionResolver;
import com.pig4cloud.plugin.idempotent.expression.KeyResolver;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
Expand All @@ -15,6 +16,7 @@
* <p>
* 幂等插件初始化
*/
@AutoConfiguration
@Configuration(proxyBeanMethods = false)
@AutoConfigureAfter(RedisAutoConfiguration.class)
public class IdempotentAutoConfiguration {
Expand Down

0 comments on commit 389e029

Please sign in to comment.