-
Notifications
You must be signed in to change notification settings - Fork 55
How to release (automated)
Roman Ivanov edited this page Jan 29, 2020
·
23 revisions
This page describes the process to release a new eclipse-cs version.
- eclipse-cs Git repo is cloned
- project can be built, make sure Travis is green
- Make sure you have the bintray profile and API key in your settings.xml.
<server>
<id>bintray</id>
<username>romani</username>
<password>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</password>
<!-- Get it here: https://bintray.com/profile/edit (section API Key) -->
</server>
- Make sure you have "bintray" profile in settings.xml (required for deployment)
<profile>
<id>bintray</id>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray-plugins</name>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
</profile>
- Make sure you have permissions on Bintray to the eclipse-cs organization
- Make sure you have github api auth token in file
~/.m2/token-checkstyle.txt
- Print previous version
xmlstarlet sel -N pom=http://maven.apache.org/POM/4.0.0 \
-t -m pom:project -v pom:version pom.xml | sed "s/-SNAPSHOT//"
- Execute (takes about 8 min):
./release.sh X.XX.0 X.{XX+1}.0
where first argument is release version(previous version + 1), and second is future release version (used for Github milestone creation).
- Go to https://bintray.com/eclipse-cs/eclipse-cs/update-site-archive (Files tab -> go to latest page in pagination, find folder "update-site-archive") , find recent uploaded file and add the update site archive file to the download list (most right column "Actions" -> "Show in download list"). API: https://bintray.com/docs/api/#_file_in_download_list
Requires permission for the listing
This is needed to make the new version visible and installable via the Eclipse Marketplace
- Go to https://marketplace.eclipse.org/content/checkstyle-plug, Log in
- Press "Edit", update version number or other information as necessary, press "Save"
- Uninstall eclipse-cs from Eclipse and re-install via Eclipse Marketplace
- Uninstall eclipse-cs and re-install via update site:
https://checkstyle.org/eclipse-cs/update