Be sure to check that plugin works before releasing!
Commands to be executed straight from the root directory of neueda/jetbrains-plugin-graph-database-support repository, on the master branch.
Release notes: ./platform/src/main/resources/graphdb/messages/GraphBundle.properties
- Execute this command:
./gradlew release
- When prompted, enter the code of version to be currently released (eg.
2.1.5
) - Shortly after, when prompted again, enter the next version code (eg.
2.1.6
) - Update release description on GitHub
- Cheer and celebrate!
That's it!
Please note that:
- Travis.org is used for publishing
- Plugin is automatically deployed to Jetbrains Plugin Registry when new tag is pushed (see
deploy
in .travis.yml) - The next version code will be added to gradle.properties
- So you can start working on the next version right away3.
[skip ci]
git commit message prefix tells Travis not to execute a build (because unnecessary)- JetBrains credentials are stored in Travis
- Currently, only INTELLIJ_TOKEN environment variable is needed for publishing
Just for reference. Travis is not used in this case
-
Push new release tag to GitHub (Travis must be disabled)
./gradlew release
-
Checkout new release tag locally
git checkout <new-release-tag>
-
Clean everything
./gradlew clean
-
Publish plugin to Jetbrains Plugin Registry
4.1. Ensure{HOME}/.gradle/gradle.properties
file contains valid intellij credentials:
intellijUsername=xxxx
intellijPassword=xxxx
4.2. Build the plugin:
./gradlew buildPlugin
4.3. Publish the plugin:
./gradlew :graph-database-support-plugin:publishPlugin