Skip to content

Commit

Permalink
! bump version to v1.0.0-Alpha29
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Nov 16, 2024
1 parent 525398c commit 6b35f05
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 45 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,18 +553,18 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha28</version>
<version>1.0.0-Alpha29</version>
</dependency>
```
- 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:
Expand All @@ -573,18 +573,18 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-kotlin</artifactId>
<version>1.0.0-Alpha28</version>
<version>1.0.0-Alpha29</version>
</dependency>
```
- 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:
Expand All @@ -593,7 +593,7 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-bom</artifactId>
<version>1.0.0-Alpha28</version>
<version>1.0.0-Alpha29</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -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:
Expand All @@ -615,19 +615,19 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<version>1.0.0-Alpha28</version>
<version>1.0.0-Alpha29</version>
<scope>runtime</scope>
</dependency>
```
- 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'
```

# 📚 更多资料
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-Alpha29</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-Alpha29</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
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-Alpha29</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
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-Alpha29</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,20 +18,20 @@ For `Maven` projects:
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<scope>runtime</scope>
<version>1.0.0-Alpha28</version>
<version>1.0.0-Alpha29</version>
</dependency>
```

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
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-Alpha29</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-Alpha29</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-Alpha29</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-Alpha29</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-Alpha29</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>cffu parent</description>
Expand Down
33 changes: 12 additions & 21 deletions scripts/bump_cffu_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6b35f05

Please sign in to comment.