--fully-export-maven-dependencies
See original GitHub issueThe existing --auto-export-maven-dependencies
flag has the effect of exporting every dependency Y of a maven module X to other maven modules that depend on X, but, confusingly for most people, it does not export Y to Ceylon modules that depend on X.
At least, I think that’s the right way to describe its effect.
The reasoning behind this was that the transitive dependencies of a maven module can include a whole heap of rubbish which just doesn’t affect the Ceylon program, and which would clog up IDE autocompletion, etc.
However, in practice, the need to explicitly specify a dependency on every dependency of a dependency (!) has been shown to be a major problem for people getting started in environments such as, for example, WildFly Swarm.
Worse, people are starting to invent workarounds like the Ceylon Gradle plugin’s generateOverridesFile
command which generates a massive overrides.xml
file which just exports all deps of all the maven modules, completely negating the “advantage” of not having --auto-export-maven-dependencies
do it.
Therefore, I propose that we provide a second option, --fully-export-maven-dependencies
, which exports transitive dependencies all the way to the Ceylon module. Even if it’s not ideal, it’s still a good way to get started when all else fails.
And it’s not like you can’t filter out stuff you don’t need. There are multiple ways to do that: overrides.xml
, and IDE completion filters.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:147 (146 by maintainers)
Top GitHub Comments
So the first victory is that I now only get those errors when compiling:
And not the hundreds of duplicate errors.
yes