You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reproduced this in a customer project which I can't share. I don't have a small reproducer yet, but will outline the issue below:
IntelliJ IDEA 2023.2.5 (Ultimate Edition)
Mill 0.11.6
Project files generated under .idea with mill mill.idea.GenIdea/idea
Module A
** depends on slf4j-api 1.7
** depends on logback-classic 1.2 at runtime time
Module B
** depends on Module A
** depends on slf4j-api 2
** depends on logback-classic 1.4
Library dependencies are not exported (which is the default for GenIdea)
When started via the IJ runner with the classpath of Module B, the application cannot properly start as there is a logback-classic 1.2 jar in the classpath, which should not be the case. This results in no properly initialized Slf4j logger.
My suspicion is, that IntelliJ IDEA somehow leaks transitive dependencies.
I propose to try the following solution / workaround:
Reorder the library and module dependencies of the generated projects, such that library dependencies always come first. This should result in a classpath, where the library dependencies (resolved by Mill) will always come before other modules and their transitive dependencies (added by IDEA).
The text was updated successfully, but these errors were encountered:
I reproduced this in a customer project which I can't share. I don't have a small reproducer yet, but will outline the issue below:
IntelliJ IDEA 2023.2.5 (Ultimate Edition)
Mill 0.11.6
Project files generated under
.idea
withmill mill.idea.GenIdea/idea
Module A
** depends on slf4j-api 1.7
** depends on logback-classic 1.2 at runtime time
Module B
** depends on Module A
** depends on slf4j-api 2
** depends on logback-classic 1.4
Library dependencies are not exported (which is the default for
GenIdea
)When started via the IJ runner with the classpath of Module B, the application cannot properly start as there is a logback-classic 1.2 jar in the classpath, which should not be the case. This results in no properly initialized Slf4j logger.
My suspicion is, that IntelliJ IDEA somehow leaks transitive dependencies.
I propose to try the following solution / workaround:
Reorder the
library
andmodule
dependencies of the generated projects, such that library dependencies always come first. This should result in a classpath, where the library dependencies (resolved by Mill) will always come before other modules and their transitive dependencies (added by IDEA).The text was updated successfully, but these errors were encountered: