Skip to content

Commit

Permalink
! bump version to v1.0.0-Alpha31
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Dec 23, 2024
1 parent 9d025a9 commit d4073b2
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 44 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,18 @@
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu:1.0.0-Alpha30")
implementation("io.foldright:cffu:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu:1.0.0-Alpha30'
implementation 'io.foldright:cffu:1.0.0-Alpha31'
```

> `cffu`也支持`Kotlin`扩展方法的使用方式,参见[`cffu-kotlin/README.md`](cffu-kotlin/README.md);使用方式的对比示例参见[`docs/usage-mode-demo.md`](docs/usage-mode-demo.md)
Expand Down Expand Up @@ -515,16 +515,16 @@ public class MultipleActionsDemo {
- 业务功能的正确性问题
- 系统稳定性问题,如导致线程中等待操作不能返回、耗尽线程池

`cffu`提供了超时执行安全的新实现方法 [`cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha30/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
/ [`cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha30/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit))
`cffu`提供了超时执行安全的新实现方法 [`cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
/ [`cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit))


更多说明参见:

- 演示问题的[`DelayDysfunctionDemo.java`](https://github.com/foldright/cffu/blob/main/cffu-core/src/test/java/io/foldright/demo/CfDelayDysfunctionDemo.java)
- `cffu backport`方法的`JavaDoc`
- [`orTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha30/io/foldright/cffu/CompletableFutureUtils.html#orTimeout(C,long,java.util.concurrent.TimeUnit))
- [`completeOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha30/io/foldright/cffu/CompletableFutureUtils.html#completeOnTimeout(C,T,long,java.util.concurrent.TimeUnit))
- [`orTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#orTimeout(C,long,java.util.concurrent.TimeUnit))
- [`completeOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#completeOnTimeout(C,T,long,java.util.concurrent.TimeUnit))

### 2.7 支持超时的`join`的方法

Expand Down Expand Up @@ -591,18 +591,18 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu:1.0.0-Alpha30")
implementation("io.foldright:cffu:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu:1.0.0-Alpha30'
implementation 'io.foldright:cffu:1.0.0-Alpha31'
```
- `cffu bom`:
- For `Maven` projects:
Expand All @@ -611,7 +611,7 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-bom</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -620,11 +620,11 @@ public class MultipleActionsDemo {

Gradle Kotlin DSL
```groovy
implementation(platform("io.foldright:cffu-bom:1.0.0-Alpha30"))
implementation(platform("io.foldright:cffu-bom:1.0.0-Alpha31"))
```
Gradle Groovy DSL
```groovy
implementation platform('io.foldright:cffu-bom:1.0.0-Alpha30')
implementation platform('io.foldright:cffu-bom:1.0.0-Alpha31')
```
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local)的[`cffu executor wrapper SPI`实现](cffu-ttl-executor-wrapper):
- For `Maven` projects:
Expand All @@ -633,19 +633,19 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
<scope>runtime</scope>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha30")
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha30'
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha31'
```

# 📚 更多资料
Expand Down
12 changes: 6 additions & 6 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,18 +605,18 @@ Current version of `Java API` documentation: https://foldright.io/api-docs/cffu/
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu:1.0.0-Alpha30")
implementation("io.foldright:cffu:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu:1.0.0-Alpha30'
implementation 'io.foldright:cffu:1.0.0-Alpha31'
```
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local) implementation for [`cffu executor wrapper SPI`](cffu-ttl-executor-wrapper):
- For `Maven` projects:
Expand All @@ -625,19 +625,19 @@ Current version of `Java API` documentation: https://foldright.io/api-docs/cffu/
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
<scope>runtime</scope>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha30")
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha30'
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha31'
```

# 📚 See also
Expand Down
2 changes: 1 addition & 1 deletion cffu-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-->
<groupId>io.foldright</groupId>
<artifactId>cffu-bom</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>cffu bom</description>
Expand Down
2 changes: 1 addition & 1 deletion cffu-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.foldright</groupId>
<artifactId>cffu-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
6 changes: 3 additions & 3 deletions cffu-kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ This module provides the extension methods to leverage Kotlin language.
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-kotlin</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu-kotlin:1.0.0-Alpha30")
implementation("io.foldright:cffu-kotlin:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha30'
implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha31'
```
2 changes: 1 addition & 1 deletion cffu-kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.foldright</groupId>
<artifactId>cffu-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
6 changes: 3 additions & 3 deletions cffu-listenable-future/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-listenable-future</artifactId>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu-listenable-future:1.0.0-Alpha30")
implementation("io.foldright:cffu-listenable-future:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu-listenable-future:1.0.0-Alpha30'
implementation 'io.foldright:cffu-listenable-future:1.0.0-Alpha31'
```
2 changes: 1 addition & 1 deletion cffu-listenable-future/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.foldright</groupId>
<artifactId>cffu-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
6 changes: 3 additions & 3 deletions cffu-ttl-executor-wrapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ This dependency should only be used at `Runtime`.
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<scope>runtime</scope>
<version>1.0.0-Alpha30</version>
<version>1.0.0-Alpha31</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha30")
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha31")
```
Gradle Groovy DSL
```groovy
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha30'
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha31'
```

`cffu-ttl-executor-wrapper` has published to maven central, find the latest version at
Expand Down
2 changes: 1 addition & 1 deletion cffu-ttl-executor-wrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.foldright</groupId>
<artifactId>cffu-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion demos/cffu-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.foldright.cffu-demos</groupId>
<artifactId>demos-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion demos/cffu-kotlin-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.foldright.cffu-demos</groupId>
<artifactId>demos-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion demos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.foldright.cffu-demos</groupId>
<artifactId>demos-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<packaging>pom</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.foldright</groupId>
<artifactId>cffu-parent</artifactId>
<version>1.x-SNAPSHOT</version>
<version>1.0.0-Alpha31</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>cffu parent</description>
Expand Down
11 changes: 7 additions & 4 deletions scripts/bump_cffu_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ source "$SELF_DIR/bash-buddy/lib/maven_utils.sh"
readonly old_version="$1"
readonly new_version="$2"

# shellcheck disable=SC2046
sed -i "s/1.x-SNAPSHOT/$new_version/g" $(rg "1.x-SNAPSHOT" -l -g '!scripts/')
# shellcheck disable=SC2046
sed -i "s/$old_version/$new_version/g" $(rg "$old_version" -l -g '!scripts/')
{ rg "1.x-SNAPSHOT" -Fl -g '!scripts/' || true; } |
tr '\n' '\0' |
xargs --no-run-if-empty --null --verbose sed -i "s/1\.x-SNAPSHOT/$new_version/g"

{ rg "$old_version" -Fl -g '!scripts/' || true; } |
tr '\n' '\0' |
xargs --no-run-if-empty --null --verbose sed -i "s/$old_version/$new_version/g"

0 comments on commit d4073b2

Please sign in to comment.