Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3973

Source tar ball will not compile with com.palantir.git-version gradle plugin applied

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.11.2.0
    • Fix Version/s: 2.11.2.1
    • Component/s: gradle
    • Labels:
      None
    • Urgency:
      Urgent

      Description

      Part 1.
      In build.gradle, the line
        id 'com.palantir.git-version' version '0.12.3'
      fetches _and applies_ the git-version plugin (this plugin is used to obtain the git commitid and git branch name without the platform having to have git installed -- this is good for portability).

      However, when applied, it checks for the presence of a `.git` directory. If no .git dir is present then it produces a fatal error and the gradle task called doesn't even get started.

      Part 2.
      When the source tarball is created, it should add the git branch and git commitid values to the RELEASE properties file that goes into the tarball (not leave it in the real one which is manually edited) so that these can be obtained when compiling from the source tarball (and hence not in a git repo).

        Attachments

          Activity

            People

            Assignee:
            soares Ben Soares
            Reporter:
            soares Ben Soares
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: