Buildr
  1. Buildr
  2. BUILDR-131

allow metadata in artifact definition

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3
    • Component/s: Dependency management
    • Labels:
      None

      Description

      Buildr allows to define artifacts as string ('group:id:type:version'), but also as a hash. The benefit I can see in using a hash is that it allows adding keys that are used by plugins when appropriate (metadata). However, Buildr always sanitizes the hash, so all metadata is lost

        Activity

        Hide
        Assaf Arkin added a comment -

        Hash and String are just two different representations of the same thing:
        http://incubator.apache.org/buildr/artifacts.html#specifying_artifacts

        Hash exists because in many places it's more convenient to work with them, and eventually strings are broken up into their component parts, but the two representations are kept consistent, otherwise you lose information. The API specifically allows to convert from one to the other and back.

        Show
        Assaf Arkin added a comment - Hash and String are just two different representations of the same thing: http://incubator.apache.org/buildr/artifacts.html#specifying_artifacts Hash exists because in many places it's more convenient to work with them, and eventually strings are broken up into their component parts, but the two representations are kept consistent, otherwise you lose information. The API specifically allows to convert from one to the other and back.
        Hide
        Ittay Dror added a comment -

        The wish is for me to be able to specify metadata on an artifact.

        I was mentioning that using the hash form looked nice, but I'd take anything

        Show
        Ittay Dror added a comment - The wish is for me to be able to specify metadata on an artifact. I was mentioning that using the hash form looked nice, but I'd take anything
        Hide
        Victor Hugo Borja added a comment -

        As I see it, artifacts are just a way of pointing to files in maven repositories, let's keep them simple.
        So if you need to add metadata on artifacts, you could add it to the jar's manifest.

        OSGi bundles are more advanced than maven artifacts in that they allow the user to add more information about the bundle, again those details are stored on the jar's manifest. OSGi support is planned for a future Buildr release.

        Show
        Victor Hugo Borja added a comment - As I see it, artifacts are just a way of pointing to files in maven repositories, let's keep them simple. So if you need to add metadata on artifacts, you could add it to the jar's manifest. OSGi bundles are more advanced than maven artifacts in that they allow the user to add more information about the bundle, again those details are stored on the jar's manifest. OSGi support is planned for a future Buildr release.
        Hide
        Assaf Arkin added a comment -

        Delegated to forthcoming dependency management.

        Show
        Assaf Arkin added a comment - Delegated to forthcoming dependency management.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ittay Dror
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development