Skip to content

Commit

Permalink
Development versions are now called *-SNAPSHOT
Browse files Browse the repository at this point in the history
Not *-LOCAL-SNAPSHOT like before.

We updated the release script to reflect this change
  • Loading branch information
jmfayard committed May 20, 2021
1 parent 6bb5a4d commit 62694e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Releasing.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,18 @@ fun CliUi.runReleaseStep(step: ReleaseStep): Unit = when (step) {
printInfo("Congratulations for this new stable release!")
printInfo("Let's update the library for next development version.")
runUntilSuccessWithErrorPrintingOrCancel {
printInfo("Enter the name of the next target version (`-LOCAL-SNAPSHOT` will be added automatically)")
printInfo("Enter the name of the next target version (`-SNAPSHOT` will be added automatically)")
val input = readLine()
input.checkIsValidVersionString()
when (Version(input).stabilityLevel()) {
StabilityLevel.Unknown, StabilityLevel.Stable -> Unit
else -> error("You need to enter a stable target version")
}
"$input-LOCAL-SNAPSHOT"
"$input-SNAPSHOT"
}
} else OngoingRelease.versionBeforeRelease.let {
if (it.endsWith("-LOCAL-SNAPSHOT")) it
else "${it.substringBefore("-dev-")}-LOCAL-SNAPSHOT"
if (it.endsWith("-SNAPSHOT")) it
else "${it.substringBefore("-dev-")}-SNAPSHOT"
}
versionsFile.writeText(nextDevVersion)
printInfo("${versionsFile.path} has been edited with next development version ($nextDevVersion).")
Expand Down
4 changes: 2 additions & 2 deletions docs/contributing/submitting-prs/dev-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ We recommend using the most recent version of IntelliJ IDEA to contribute to thi

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

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

### Testing changes locally
Expand Down Expand Up @@ -63,4 +63,4 @@ pluginManagement {
}
```

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.
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.
2 changes: 1 addition & 1 deletion plugins/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.1-LOCAL-SNAPSHOT
0.10.1-SNAPSHOT

0 comments on commit 62694e1

Please sign in to comment.