Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-132729

As a developer, I'd like to set the package version to 0 and skip baseline

    Details

      Description

      Goal: a way that would allow devs to start merging to master APIs which are still in flux and are expected to still have many backwards incompatible changes.

      Proposed solution: Allow devs to commit package versions less than 1.0.0 and skip the baseline check.

      More on this idea from Ray:

      if you want to ignore packages with version less that 1 you have the option of passing a filter (package list) to the baseline instructions in bnd
      i.e. this is already supported by the library
      all you need is to collect the packages that are less than 1 with logic, and pass them to bnd
      automate it!
      that's what I meant by the library supports this filtering
      by the time baseline is being executed you a) already have the jar b) already have the set of exported packages
      just create a list of packages that are version less that 1 and pass them to the baseline function

      nice-to-have: whenever a module is compiled that includes a package with version number <1.0.0, a warning is thrown near the end of the log output. For example, if a dev runs gradlew deploy, the log should display something like "WARN: used package com.liferay.... with version {x} that might be unstable or in development"

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            jason.pince Jason Pince
            Recent user:
            Enterprise Release HU
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                7.3.7 CE GA8
                7.3.X
                7.4.1 CE GA2 DXP 7,4
                Master