Skip to content

Commit 4157e29

Browse files
authored
Use candidate version instead of explicitly specifying (#601)
[skip ci]
1 parent 802b5a4 commit 4157e29

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

RELEASE_OPERATIONS.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
The Gradle release task creates a release commit and push it to the origin/master branch.
66

77
```
8-
$ export DOMA_VERSION=1.0.0
98
$ git checkout master
109
$ git pull
11-
$ ./gradlew release -Prelease.releaseVersion=${DOMA_VERSION} -Prelease.newVersion=1.1.0-SNAPSHOT
10+
$ ./gradlew release -Prelease.releaseVersion=2.43.1
1211
```
1312

14-
The value of `DOMA_VERSION` is decided by the draft name of
13+
The value of `release.releaseVersion` is decided by the draft name of
1514
[Releases](https://github.com/domaframework/doma/releases).
1615

1716
## Build and Publish
@@ -29,7 +28,7 @@ The workflow builds artifacts and publishes them to [Maven Central](https://repo
2928
Use [Dependency Watch](https://github.com/JakeWharton/dependency-watch).
3029

3130
```
32-
$ dependency-watch await org.seasar.doma:doma-core:${DOMA_VERSION} && say "Doma ${DOMA_VERSION} is available!"
31+
$ dependency-watch await org.seasar.doma:doma-core:2.43.1 && say "New version is available!"
3332
```
3433

3534
If the above command is successful, the following directories will contain the new artifacts:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ rootProject.apply {
220220

221221
named("updateVersion") {
222222
doLast {
223-
val newVersion = project.properties["release.newVersion"]?.toString()
223+
val newVersion = project.properties["version"]?.toString()
224224
checkNotNull(newVersion)
225225
replaceVersionInArtifact(newVersion)
226226
}

0 commit comments

Comments
 (0)