logging-log4j2
logging-log4j2 copied to clipboard
Sort release 2.x POM files
This PR performs two cleanup actions:
- it moves the
<scope>of dependencies from the<dependencyManagement>and adds it wherever the dependencies are used. This has some beneficial effect: e.g.log4j-apihad a transitive dependency ofjavax.inject:javax.injectin the provided scope because of the interaction betweenmaven-coreand our<dependencyManagement>. Now the dependency is in the test scope. - it uses
src/tools/sort-pom.xsltto sort all dependencies and plugins according to: the scope (import > provided > system > compile > runtime > text), the artifact id (except Log4j2 artifacts which come always first) and group id.
Warning: do not merge, until all dependency scope changes are accounted for.
The difference in the dependency list before and after this change is minimal:
- the transitive dependency
javax.injectwas before forced in theprovidedscope. It is now in the same scope as the artifact that depends on it, - there are some version changes in the transitive dependencies due to the order change: guava (test scope) is bumped to
29.0-jreinlog4j-core, whereas asm is bumped from7.0to7.2, commons-io,xzandnetty-allare not necessarily in thetestscope.