Skip to content

Releases: researchgate/gradle-release

2.3.1

04 Nov 23:40
Compare
Choose a tag to compare

Bugfixes

  • SVN: Fix NPE happening in checkUpdateNeeded (#145, thanks IVU-chl)

2.3.0

13 Oct 20:30
Compare
Choose a tag to compare

New Features

  • COMMON: Possibility to use the release plugin in multiprojects where each project has its own version (#116, thanks christierney)
  • GIT: Option pushToBranchPrefix can now be set to specify a remote branch prefix when committing next version (#140, #113, thanks muryoh)

Changes

  • COMMON: The plugin now emits warnings when setting deprecated configuration or cli options

Bugfixes

  • COMMON: Fixed internal bug in Executor not overwriting environment variables as expected (#135, thanks ddimtirov)
  • COMMON: Fix bug with projects that do not yet have a property file created (#123, thanks dodgex)
  • COMMON: Fix bug with release failing when using --parallel option for gradle (#60, thanks tschulte)
  • GIT: The option pushToCurrentBranch is deprecated, as it was simply unnecessary and can be safely removed

2.2.2

08 Sep 21:15
Compare
Choose a tag to compare

Bugfixes

  • GIT: Respect option pushToRemote when pushing tag to remote
  • GIT: Catch errors correctly when doing commit (#128 thanks grigorigoldman)
  • SVN: Detect trunk/tag/branch directories case-insensitive (#130 thanks naugler)

2.2.1

23 Aug 21:09
Compare
Choose a tag to compare

Bugfixes

COMMON: Fix incompatibility with maven-publish plugin (#125 thanks raphsoft and alibkord)

2.2.0

09 Aug 10:19
Compare
Choose a tag to compare

Bugfixes

  • COMMON: Refactored writing of version property to property-file. (#120, thanks simonsilvalauinger)
    • Spaces are now preserved in properties file
    • No other properties will be touched
    • DateTime will not be written anymore

New Features

  • COMMON: Possibility to use a regex for the option requireBranch (#118,#119, thanks grigorigoldman)
  • COMMON: Possibility to use custom build tasks by setting the option buildTasks (#117, thanks ntarocco)

2.1.2

12 Jun 20:37
Compare
Choose a tag to compare

Bugfixes

  • SVN: Fix checkUpdateNeeded when externals were used (#106, thanks pstanoev)
  • SVN: Fix creating tags when subdirectories are used in tagname (#110, thanks kmoens)

Changes

  • COMMON: Added cli option release.useAutomaticVersion to normalize with the other options. gradle.release.useAutomaticVersion will be deprecated in the future.

2.1.1

02 Jun 19:53
Compare
Choose a tag to compare

Bugfixes

  • SVN: Fix exception when externals were used (#106, thanks pstanoev)
  • SVN: Fix externals not to be detected as uncommited changes

2.1.0

01 Jun 08:48
Compare
Choose a tag to compare

This release contains new features but was also the target of some internal refactorings.
Due to the refactoring one minor breaking change had to be done. See the list below for details and the upgrade instructions.

Breaking Changes

  • GIT: The configuration options are now all contained in the release closure. If you were using one of the options requireBranch, pushToRemote or pushToCurrentBranch you need to adjust your config. See upgrade instructions.

New Features

  • COMMON: New flexible configuration tagTemplate to specify the name of the tag. (#96)
  • COMMON: Refactored the build process during release to run in separate process. This will hopefully resolve all the issues with certain other plugins like the new maven-publish or the bintray plugin.
  • COMMON: Added beforeReleaseBuild and afterReleaseBuild hook, which both run in the same process as the build itself.
  • COMMON: Added a convenient way for external adapters to be used instead of the supplied ones. Documentation and example to follow.
  • SVN: Allow credentials to be specified
    • Either with commandline parameters gradle release -Prelease.svn.username=eric -Prelease.svn.password=secret
    • Or directly inside your build.gradle: (This is a silly example, don't put your credentials under version control! For security reasons you might want to put variables inside your users properties file and reference them in the projects gradle script)
release {
    svn {
        username = eric
        password = secret
    }
}

Changes

  • COMMON: The SCM adapter is now lazy loaded and does not require an scm to be present during plugin initialization. New task createScmAdapter added at the beginning of release, which handles the creation of the correct scm adapter.

Deprecated Features

  • COMMON: The configuration options includeProjectNameInTag and tagPrefix are deprecated and will be remove with 3.0. Please migrate to tagTemplate. See upgrade instructions. (#96)
  • COMMON: Depending on any internal release task like createReleaseTag is highly discouraged. Use the beforeReleaseBuild or afterReleaseBuild tasks. See upgrade instructions.

2.0.0

04 Feb 20:07
Compare
Choose a tag to compare

New Features

  • COMMON: The release version and new version can be supplied as cli parameters (#44, #67, thanks thokuest)
  • GIT: Option to disable pushing to remote (#41, #33, thanks szpak)
  • GIT: Option to change name of remote to push to

Changes

  • Package of classes had to be changed from releaseto net.researchgate.release. (This is only relevant if you imported some of the classes directly in your code.)
  • COMMON: Better error message if updating of version fails

Bugfixes

  • COMMON: Fixed problems with setting custom versionPropertyFile (#56, #57, #58, thanks jeffastorey)
  • GIT: Fixed calling release plugin in sub-project with git repository in parent (#35, thanks szpak)
  • GIT: Fixed setting requireBranch to empty string (#40, thanks szpak)
  • HG: Only check for incoming and outgoing changes on current branch for Mercurial (#76, thanks litpho)
  • SVN: Fixed SVN release on windows (#39, #68, thanks thokuest)
  • SVN: Fix creating branch from correct revision (#48)
  • SVN: Set proper environment for svn client (#52, #86)