diff --git a/README.md b/README.md
index b538b968..267f00ea 100644
--- a/README.md
+++ b/README.md
@@ -553,18 +553,18 @@ public class MultipleActionsDemo {
io.foldright
cffu
- 1.0.0-Alpha28
+ 1.0.0-Alpha29
```
- For `Gradle` projects:
```groovy
// Gradle Kotlin DSL
- implementation("io.foldright:cffu:1.0.0-Alpha28")
+ implementation("io.foldright:cffu:1.0.0-Alpha29")
```
```groovy
// Gradle Groovy DSL
- implementation 'io.foldright:cffu:1.0.0-Alpha28'
+ implementation 'io.foldright:cffu:1.0.0-Alpha29'
```
- `cffu Kotlin`支持库:
- For `Maven` projects:
@@ -573,18 +573,18 @@ public class MultipleActionsDemo {
io.foldright
cffu-kotlin
- 1.0.0-Alpha28
+ 1.0.0-Alpha29
```
- For `Gradle` projects:
```groovy
// Gradle Kotlin DSL
- implementation("io.foldright:cffu-kotlin:1.0.0-Alpha28")
+ implementation("io.foldright:cffu-kotlin:1.0.0-Alpha29")
```
```groovy
// Gradle Groovy DSL
- implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha28'
+ implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha29'
```
- `cffu bom`:
- For `Maven` projects:
@@ -593,7 +593,7 @@ public class MultipleActionsDemo {
io.foldright
cffu-bom
- 1.0.0-Alpha28
+ 1.0.0-Alpha29
pom
import
@@ -602,11 +602,11 @@ public class MultipleActionsDemo {
```groovy
// Gradle Kotlin DSL
- implementation(platform("io.foldright:cffu-bom:1.0.0-Alpha28"))
+ implementation(platform("io.foldright:cffu-bom:1.0.0-Alpha29"))
```
```groovy
// Gradle Groovy DSL
- implementation platform('io.foldright:cffu-bom:1.0.0-Alpha28')
+ implementation platform('io.foldright:cffu-bom:1.0.0-Alpha29')
```
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local)的[`cffu executor wrapper SPI`实现](cffu-ttl-executor-wrapper):
- For `Maven` projects:
@@ -615,7 +615,7 @@ public class MultipleActionsDemo {
io.foldright
cffu-ttl-executor-wrapper
- 1.0.0-Alpha28
+ 1.0.0-Alpha29
runtime
```
@@ -623,11 +623,11 @@ public class MultipleActionsDemo {
```groovy
// Gradle Kotlin DSL
- runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha28")
+ runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha29")
```
```groovy
// Gradle Groovy DSL
- runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha28'
+ runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha29'
```
# 📚 更多资料
diff --git a/cffu-bom/pom.xml b/cffu-bom/pom.xml
index e58e7604..cf6c0a96 100644
--- a/cffu-bom/pom.xml
+++ b/cffu-bom/pom.xml
@@ -10,7 +10,7 @@
-->
io.foldright
cffu-bom
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
pom
${project.artifactId}
cffu bom
diff --git a/cffu-core/pom.xml b/cffu-core/pom.xml
index 60a09cc7..41cc96bd 100644
--- a/cffu-core/pom.xml
+++ b/cffu-core/pom.xml
@@ -4,7 +4,7 @@
io.foldright
cffu-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
../pom.xml
diff --git a/cffu-kotlin/pom.xml b/cffu-kotlin/pom.xml
index 65d815e6..3516da31 100644
--- a/cffu-kotlin/pom.xml
+++ b/cffu-kotlin/pom.xml
@@ -4,7 +4,7 @@
io.foldright
cffu-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
../pom.xml
diff --git a/cffu-listenable-future/pom.xml b/cffu-listenable-future/pom.xml
index df8e1ae4..29d693eb 100644
--- a/cffu-listenable-future/pom.xml
+++ b/cffu-listenable-future/pom.xml
@@ -4,7 +4,7 @@
io.foldright
cffu-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
../pom.xml
diff --git a/cffu-ttl-executor-wrapper/README.md b/cffu-ttl-executor-wrapper/README.md
index c9ee2726..86d8fdab 100644
--- a/cffu-ttl-executor-wrapper/README.md
+++ b/cffu-ttl-executor-wrapper/README.md
@@ -18,7 +18,7 @@ For `Maven` projects:
io.foldright
cffu-ttl-executor-wrapper
runtime
- 1.0.0-Alpha28
+ 1.0.0-Alpha29
```
@@ -26,12 +26,12 @@ For `Gradle` projects:
```groovy
// Gradle Kotlin DSL
-runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha28")
+runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha29")
```
```groovy
// Gradle Groovy DSL
-runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha28'
+runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha29'
```
`cffu-ttl-executor-wrapper` has published to maven central, find the latest version at
diff --git a/cffu-ttl-executor-wrapper/pom.xml b/cffu-ttl-executor-wrapper/pom.xml
index e345edd6..561bf139 100644
--- a/cffu-ttl-executor-wrapper/pom.xml
+++ b/cffu-ttl-executor-wrapper/pom.xml
@@ -4,7 +4,7 @@
io.foldright
cffu-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
../pom.xml
diff --git a/demos/cffu-demo/pom.xml b/demos/cffu-demo/pom.xml
index 0c7c0602..131f45cc 100644
--- a/demos/cffu-demo/pom.xml
+++ b/demos/cffu-demo/pom.xml
@@ -4,7 +4,7 @@
io.foldright.cffu-demos
demos-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
../pom.xml
diff --git a/demos/cffu-kotlin-demo/pom.xml b/demos/cffu-kotlin-demo/pom.xml
index 1a966385..1f8e2f1a 100644
--- a/demos/cffu-kotlin-demo/pom.xml
+++ b/demos/cffu-kotlin-demo/pom.xml
@@ -4,7 +4,7 @@
io.foldright.cffu-demos
demos-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
../pom.xml
diff --git a/demos/pom.xml b/demos/pom.xml
index d7ef2d5f..067ef99d 100644
--- a/demos/pom.xml
+++ b/demos/pom.xml
@@ -3,7 +3,7 @@
4.0.0
io.foldright.cffu-demos
demos-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
pom
diff --git a/pom.xml b/pom.xml
index 46b13e6f..e2840c10 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
io.foldright
cffu-parent
- 1.x-SNAPSHOT
+ 1.0.0-Alpha29
pom
${project.artifactId}
cffu parent
diff --git a/scripts/bump_cffu_version.sh b/scripts/bump_cffu_version.sh
index 44a259f1..9df89527 100755
--- a/scripts/bump_cffu_version.sh
+++ b/scripts/bump_cffu_version.sh
@@ -4,29 +4,20 @@ set -eEuo pipefail
SELF_PATH=$(realpath -- "$0")
readonly SELF_PATH SELF_DIR=${SELF_PATH%/*}
# cd to script dir
-cd "$SELF_DIR"
+cd "$SELF_DIR"/..
-source "$PWD/bash-buddy/lib/trap_error_info.sh"
-source "$PWD/bash-buddy/lib/common_utils.sh"
-source "$PWD/bash-buddy/lib/java_utils.sh"
-source "$PWD/bash-buddy/lib/maven_utils.sh"
-
-readonly newline=$'\n'
+source "$SELF_DIR/bash-buddy/lib/trap_error_info.sh"
+source "$SELF_DIR/bash-buddy/lib/common_utils.sh"
+source "$SELF_DIR/bash-buddy/lib/java_utils.sh"
+source "$SELF_DIR/bash-buddy/lib/maven_utils.sh"
# shellcheck disable=SC2154
-[ $# -ne 1 ] && cu::die "need only 1 argument for version!$newline${newline}usage:$newline $0 x.y.z"
-readonly new_version="$1"
-
-bump_cffu_version() {
- mvu::mvn_cmd \
- org.codehaus.mojo:versions-maven-plugin:2.15.0:set \
- -DgenerateBackupPoms=false \
- -DprocessAllModules=true \
- -DnewVersion="$new_version"
-}
+[ $# -ne 2 ] && cu::die "need only 2 argument for old and new versions!"
-cd ..
-bump_cffu_version
+readonly old_version="$1"
+readonly new_version="$2"
-cd demos
-bump_cffu_version
+# shellcheck disable=SC2046
+sed -i "s/1.0.0-Alpha29/$new_version/g" $(rg 1.0.0-Alpha29 -l)
+# shellcheck disable=SC2046
+sed -i "s/$old_version/$new_version/g" $(rg "$old_version" -l)