[hibernate-commits] [hibernate/hibernate-orm] cfeee5: Add gradle task to automate the CI release

Andrea Boriero noreply at github.com
Mon Jun 22 14:54:24 EDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: cfeee5059ba5bc29033d68119c0b552a37905ac2
      https://github.com/hibernate/hibernate-orm/commit/cfeee5059ba5bc29033d68119c0b552a37905ac2
  Author: Andrea Boriero <andrea at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M gradle/base-information.gradle
    M gradle/published-java-module.gradle
    A gradle/version.properties
    M release/release.gradle

  Log Message:
  -----------
  Add gradle task to automate the CI release


  Commit: 8363df3495189885638731cc84331fec4b199b9a
      https://github.com/hibernate/hibernate-orm/commit/8363df3495189885638731cc84331fec4b199b9a
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  Fix error detection in executeGitCommand

1. proc.consumeProcessErrorStream does not work correctly: it creates a
   thread to asynchronously copy the content of the stream to the string
   buffer, and does not provide any way to know when it's done. As a
   result, sometimes the buffer is correctly filled in after
   consumeProcessErrorStream returns, sometimes it's not.
2. Checking stderr to know if there was an error is not a good idea: a
   process can run just fine and give output on stderr (logs,
   basically), and a process can fail without giving any output on
   stderr. Checking the status code is more reliable.


  Commit: 5232df9686e8f1c6685d6709f5744deb85aa866f
      https://github.com/hibernate/hibernate-orm/commit/5232df9686e8f1c6685d6709f5744deb85aa866f
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  Fix incorrect message for the second commit during release


  Commit: 7dbd813996594c406cb4fd93a259bf3db661056d
      https://github.com/hibernate/hibernate-orm/commit/7dbd813996594c406cb4fd93a259bf3db661056d
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  Use a less verbose syntax for git commands


  Commit: 70721d80a7b7157d7a79a083089572491c67db9a
      https://github.com/hibernate/hibernate-orm/commit/70721d80a7b7157d7a79a083089572491c67db9a
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M gradle/base-information.gradle
    M release/release.gradle

  Log Message:
  -----------
  Move the update to version.properties to a release task

This is necessary if we want to check that the working tree is empty as
part of the release process (see next commit).


  Commit: 02abce69fa0edf844f00e5d4fc20dacbe579be6d
      https://github.com/hibernate/hibernate-orm/commit/02abce69fa0edf844f00e5d4fc20dacbe579be6d
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  Add more precondition checks to release tasks


  Commit: 1ad029c6d982e09a8d635b43b7fc6b4d68f4880f
      https://github.com/hibernate/hibernate-orm/commit/1ad029c6d982e09a8d635b43b7fc6b4d68f4880f
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  Push to github atomically and only if the release succeeds


  Commit: 1fcef3a63281acde06b7065a4c4d2526afc5d03c
      https://github.com/hibernate/hibernate-orm/commit/1fcef3a63281acde06b7065a4c4d2526afc5d03c
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M gradle/publishing-repos.gradle

  Log Message:
  -----------
  Enable automatic Maven Central sync when calling task bintrayPublish

Copied from https://github.com/hibernate/hibernate-reactive/pull/246

Note you need to call the bintrayPublish task after calling
bintrayUpload, otherwise it won't work.

So you will need to use something like this:

./gradlew bintrayUpload bintrayPublish -P PERSONAL_BINTRAY_USER=... -P PERSONAL_BINTRAY_API_KEY=... -P SONATYPE_OSSRH_USER=... -P SONATYPE_OSSRH_PASSWORD=...


  Commit: 4668466fd7e4f17f7be77631872a306141822ea9
      https://github.com/hibernate/hibernate-orm/commit/4668466fd7e4f17f7be77631872a306141822ea9
  Author: Andrea Boriero <andrea at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  Add changeLogFile task


  Commit: 766ed3f2bf6af5a302f6c51ceb00c50cfde8a896
      https://github.com/hibernate/hibernate-orm/commit/766ed3f2bf6af5a302f6c51ceb00c50cfde8a896
  Author: Andrea Boriero <andrea at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  HHH-14083 Fix issue with git command


  Commit: 34930bf0f0260e7a2d21eeacb05c11ee62e6db72
      https://github.com/hibernate/hibernate-orm/commit/34930bf0f0260e7a2d21eeacb05c11ee62e6db72
  Author: Andrea Boriero <andrea at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  HHH-14083 add ciRelease dependency to bintray upload


  Commit: 604b594226355dc789586c40f1eee241aca259b5
      https://github.com/hibernate/hibernate-orm/commit/604b594226355dc789586c40f1eee241aca259b5
  Author: Andrea Boriero <andrea at hibernate.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M release/release.gradle

  Log Message:
  -----------
  HHH-14083 add task release must run after addVersionCommit task


Compare: https://github.com/hibernate/hibernate-orm/compare/c44150d0d6e9...604b59422635



More information about the hibernate-commits mailing list