terasolunaorg / terasoluna-gfw

Common libraries for TERASOLUNA Server Framework for Java (5.x)
108 stars 56 forks source link

Unnecessary dependency on commons-logging #827

Closed ikeyat closed 5 years ago

ikeyat commented 6 years ago

Description

Until v5.3.1, terasoluna-gfw-parent imports spring-core through io-platform (a.k.a Spring IO Platform). Actually it's defined in spring-boot-starter-parent that is a parent of io-platform. Since v5.4.1, terasoluna-gfw-parent imports spring-core through spring-framework-bom to satisfy #797.

The change causes an unnecessary dependency on commons-logging on v5.4.1. Therefore, application will include unexpected commons-logging in spite the application never use it. (In TERASOLUNA Framework Development guideline, jcl-over-slf4j and logback are recommended instead of commons-logging) terasoluna-gfw-parent pom should be fixed not to import commons-logging.

Possible Solutions

Candidates

  1. excludes commons-logging at terasoluna-gfw-parent pom
  2. change the version of platform-io keeping the versions of all the dependent libraries.

Affects Version/s

Fix Version/s

Issue Links

ikeyat commented 6 years ago

Warning: The impact of this problem may be a separation of log system.

I'm not sure whether commons-logging takes over jcl-over-slf4j or not. If it does, logs of legacy libraries based on commons-logging (such as Spring4, commons) may be written with commons-logging, others may be written with logback through slf4j.

To avoid this certainly, please exclude commons-logging in your application's pom.

yoshikawaa commented 5 years ago

Fixed at #896. terasoluna-gfw 5.4.2 depend on spring-core using platform-bom Brussels-SR17.