Skip to content

Commit 62694e1

Browse files
committed
Development versions are now called *-SNAPSHOT
Not *-LOCAL-SNAPSHOT like before. We updated the release script to reflect this change
1 parent 6bb5a4d commit 62694e1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Releasing.main.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,18 @@ fun CliUi.runReleaseStep(step: ReleaseStep): Unit = when (step) {
213213
printInfo("Congratulations for this new stable release!")
214214
printInfo("Let's update the library for next development version.")
215215
runUntilSuccessWithErrorPrintingOrCancel {
216-
printInfo("Enter the name of the next target version (`-LOCAL-SNAPSHOT` will be added automatically)")
216+
printInfo("Enter the name of the next target version (`-SNAPSHOT` will be added automatically)")
217217
val input = readLine()
218218
input.checkIsValidVersionString()
219219
when (Version(input).stabilityLevel()) {
220220
StabilityLevel.Unknown, StabilityLevel.Stable -> Unit
221221
else -> error("You need to enter a stable target version")
222222
}
223-
"$input-LOCAL-SNAPSHOT"
223+
"$input-SNAPSHOT"
224224
}
225225
} else OngoingRelease.versionBeforeRelease.let {
226-
if (it.endsWith("-LOCAL-SNAPSHOT")) it
227-
else "${it.substringBefore("-dev-")}-LOCAL-SNAPSHOT"
226+
if (it.endsWith("-SNAPSHOT")) it
227+
else "${it.substringBefore("-dev-")}-SNAPSHOT"
228228
}
229229
versionsFile.writeText(nextDevVersion)
230230
printInfo("${versionsFile.path} has been edited with next development version ($nextDevVersion).")

docs/contributing/submitting-prs/dev-env.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ We recommend using the most recent version of IntelliJ IDEA to contribute to thi
2828

2929
This step is required for the samples to work afterwards and enable you to test your changes.
3030

31-
1. Ensure the version in the `plugins/version.txt` file ends with `-LOCAL-SNAPSHOT` to avoid overlapping a published version.
31+
1. Ensure the version in the `plugins/version.txt` file ends with `-SNAPSHOT` to avoid overlapping a published version.
3232
2. In the "Gradle" tool window, or from the terminal, run the `publishToMavenLocal` task.
3333

3434
### Testing changes locally
@@ -63,4 +63,4 @@ pluginManagement {
6363
}
6464
```
6565

66-
Once you're done, you can replace the version with the local snapshot version (e.g. `0.9.8` -> `0.9.9-LOCAL-SNAPSHOT`) and test your changes.
66+
Once you're done, you can replace the version with the snapshot version (e.g. `0.9.8` -> `0.9.9-SNAPSHOT`) and test your changes.

plugins/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.1-LOCAL-SNAPSHOT
1+
0.10.1-SNAPSHOT

0 commit comments

Comments
 (0)