[ 
https://issues.apache.org/jira/browse/OFBIZ-12263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370501#comment-17370501
 ] 

Ioan Eugen Stan commented on OFBIZ-12263:
-----------------------------------------

Thanks.

It does not look very promising. 
People usually have little patience when trying out new things so it is good to 
make it easy to quickstart.

I think plugins should be easy to develop so the user community grow and then 
the dev community will grow with it.

Would people be open to change how ofbiz  and  plugins are built? 
I know not everyone is happy with OFBiz being built as a monolith app but I 
also know gradle has features that might allow us to have the cake and eat it.

I'm looking at gradle composing builds: 
[https://docs.gradle.org/current/userguide/composite_builds.html] .

Composite builds allow you to have a master build that includes other 
independent builds. 
We could split OFBiz into a few builds. 
Each build would be independent but reusable as source projects in other 
builds. 

Plugins could also be included like that and they could also include other 
ofbiz builds that they depend on (framework or even another app plugin ?!)

I don't think this approach will cause significant user experience changes, but 
should make the project reusable / less monolithic.

Would you support something like this?

 

> Cannot compile plugins with dependencies in other repositories - clojars repo
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-12263
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12263
>             Project: OFBiz
>          Issue Type: New Feature
>            Reporter: Ioan Eugen Stan
>            Priority: Minor
>
> 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://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]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to