Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12263

Cannot compile plugins with dependencies in other repositories - clojars repo

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I would like to build a plugin that contains a dependency from Clojars repository.

      https://github.com/netdava/ofbiz-clojure-repl

      Clojuras is not in the list of OFBiz repositories and the plugin fails to build.

      Adding clojars to the plugin repository configuration does not work.

       

      Adding clojars to the main gradle project (in subprojects repository) works.

      However this approach leads to add all repos in main project and possibly upstream.

       

      I think another approach is necessary for this.

      A solution would be to make the plugins more independent from the main project.

      This could be achieved by using a BOM ?

      https://dzone.com/articles/gradle-goodness-use-bill-of-materials-bom-as-depen

      https://docs.gradle.org/current/userguide/platforms.html#sub:using-platform-to-control-transitive-deps

      This will probably require to publish ofbiz binaries.

       

      ML discussion:  https://lists.apache.org/thread.html/rc8151611a7946b2e9be88755fd44b89af66356941613f4ddff9cdf17%40%3Cdev.ofbiz.apache.org%3E

      https://docs.gradle.org/current/userguide/declaring_repositories.html

      https://discuss.gradle.org/t/repositories-in-subprojects/23596/2

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ieugen Ioan Eugen Stan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: