ofbiz-framework icon indicating copy to clipboard operation
ofbiz-framework copied to clipboard

[Exploratory] Use gralde projects for framework components

Open ieugen opened this issue 3 years ago • 2 comments

DO NOT MERGE

Exploratory branch - see how we can approach components dependency https://issues.apache.org/jira/browse/OFBIZ-3500

This is to start discussion around improving ofbiz codebaase to allow more contributions.

Goals:

  • Migrate ofbiz components to use gradle projects.
  • Expose dependencies of each component.
  • Expose circular dependencies between components.
  • Allow easier future code changes / dependency updates.

Test with:

cd framework
./gradlew clean build

Done so far:

  • Created build.gradle files for some components; start, base, common, etc.
  • Circular dependencies between components needs to be fixed before we move forward. ** start depends on base and reverse ** common depends on base and reverse ** base depends on entity and webapp ** etc ?!

ieugen avatar Aug 17 '21 22:08 ieugen

cc @nmalin : This is to start discussions. The job is a bit more complex because of circular dependencies between modules.

If you

cd framewrok 
./gradlew clean build 

(or open framework project in IDE) you will see what I mean.

Right now start depends on base and base on start . base also depends on entity and webapp.

I believe these circular dependencies should be fixed and I would need some help here.

ieugen avatar Aug 18 '21 05:08 ieugen

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

sonarqubecloud[bot] avatar Aug 30 '21 09:08 sonarqubecloud[bot]

Superseded by https://github.com/apache/ofbiz-framework/pull/678 .

ieugen avatar Dec 06 '23 14:12 ieugen