Skip to content

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.

Preconditions:

<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

Prepare and test release build

  1. 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//"
  1. 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).

Still manual but should be automated

  1. 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

Update Eclipse Marketplace listing

Requires permission for the listing

This is needed to make the new version visible and installable via the Eclipse Marketplace

  1. Go to https://marketplace.eclipse.org/content/checkstyle-plug, Log in
  2. Press "Edit", update version number or other information as necessary, press "Save"

Test installations

  1. Uninstall eclipse-cs from Eclipse and re-install via Eclipse Marketplace
  2. Uninstall eclipse-cs and re-install via update site: https://checkstyle.org/eclipse-cs/update
Clone this wiki locally