Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-1451

Create an API to add a dependency to a project

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.13.0.Final
    • None
    • None
    • 2018 Week 39-41, 2018 Week 42-44, 2018 Week 45-47, 2018 Week 48-50
    • 5
    • NEW
    • VERIFIED

      The main goal of this task is to provide an API that editors will use in order to ask AppFormer to add a maven dependency to the pom. This API should be based on CDI events.

      Something like this:

      event.fire(new AddPomDependency(workspaceProject, dependency); [1]

      The dependency object should be a CDI bean on backend/front-end scope (api projects) that implements the same interface:

      i.e. DynamicPomDependency interface

      getGroupId()
      getArtifactId()

      WorkspaceProject -> context from the project that will give us the pom root. Library Places probably has this info (Paulo can give more details of this).

      [1] we are not going to ask versions here on purpose, more details on AF-1452

              mdessi-1 Massimiliano Dessi
              eignatow Eder Ignatowicz
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: