Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355276

Summary: [modeling] minimize the bundle dependencies
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Miles Parker <milesparker>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 0.9   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 355025    

Description Steffen Pingel CLA 2011-08-19 18:07:07 EDT
Bundle manifests should only list required bundles. It seems that most bundles specify too many requirements, e.g. o.e.m.modeling.tests has almost 70 dependencies.
Comment 1 Miles Parker CLA 2011-08-19 18:35:51 EDT
Well, I typically only add a dependency if the project won't actually build without them. I'll admit I've been lazy with .tests, but with a quick scan I can't see much that I can get rid of their short of going through each individual bundle and pulling them out. GMF and Papyrus in particular are really bad as far as dependency granularity goes.
Comment 2 Miles Parker CLA 2011-08-19 19:46:16 EDT
Found a few things in modeling.ui I can do without including mylyn java (good catch there) and some eclipse ui stuff. But not much else. We're integrating a lot of stuff so its natural to have a lot of dependencies.

https://github.com/MilesParker/mylyn.incubator/commit/b453a37d738fb0d0d38111d3749a5381164f6f8f
Comment 3 Steffen Pingel CLA 2011-08-19 20:50:28 EDT
(In reply to comment #1)
> Well, I typically only add a dependency if the project won't actually build
> without them. I'll admit I've been lazy with .tests, but with a quick scan I
> can't see much that I can get rid of their short of going through each
> individual bundle and pulling them out. GMF and Papyrus in particular are really
> bad as far as dependency granularity goes.

PDE also has support for removing unused dependencies automatically. We may want to split up the test bundle further to gain better modularization.

One of the things that's not quite clear to me is why modeling.ui would have a gmf dependency while it's part of the EMF feature. I would have expected the EMF feature to have dependencies on pure EMF only?
Comment 4 Miles Parker CLA 2011-08-19 22:33:07 EDT
(In reply to comment #3)
> (In reply to comment #1)

> PDE also has support for removing unused dependencies automatically. We may want

Yes, in my experience it has been overly aggressive so I always end up needing to put stuff back in (and then forgetting to remove the automatically inserted version qualifiers :#) But I tried it again and it didn't do badly, I just had to manually fix a couple of things. So I've just taken a good whack out of some more.

> to split up the test bundle further to gain better modularization.

Yeah, I usually go on for one on these, especially since there is some stuff that we might want to be able to isolate if things go south. This was sort of a short term thing while I worked that package structure out.

> One of the things that's not quite clear to me is why modeling.ui would have a
> gmf dependency while it's part of the EMF feature.

Um, because I overlooked it? Good catch.
Comment 5 Miles Parker CLA 2011-08-31 13:05:43 EDT
OK, I think this is pretty minimal. Please reopen if you disagree.