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
{{ message }}
Repository navigation
spring-core source jar contains two copies of source code [SPR-15462] #20022
The commons-logging classes in spring-core (see #19081) seem to contain 2 copies of the source code (in the same file for each class). I think that makes them unreadable by Eclipse because I can't read the code in the IDE.
According to Dave's comment, it affects all sources in spring-core and not just the Commons Logging classes... Let's double-check what we're producing here.
Stéphane asked me to take a look at this. It's caused by a bug in Kotlin's Gradle plugin that causes src/main/java to be listed twice in sourceSets.main.allSource. You can work around the problem by setting duplicatesStrategy = DuplicatesStrategy.EXCLUDE on the sourcesJar task.
Activity
spring-projects-issues commentedon Apr 19, 2017
Dave Syer commented
Actually it's all the sources in spring-core (maybe other jars I didn't check). So probably something screwed up in the build config globally.
spring-projects-issues commentedon Apr 22, 2017
Stéphane Nicoll commented
Juergen Hoeller do we care? I thought we were about to move those to a separate jar?
spring-projects-issues commentedon Apr 22, 2017
Juergen Hoeller commented
According to Dave's comment, it affects all sources in
spring-coreand not just the Commons Logging classes... Let's double-check what we're producing here.spring-projects-issues commentedon Apr 24, 2017
Stéphane Nicoll commented
I can see a duplication of asm and commons logging and certain packages indeed.
spring-projects-issues commentedon Apr 24, 2017
Andy Wilkinson commented
Stéphane asked me to take a look at this. It's caused by a bug in Kotlin's Gradle plugin that causes
src/main/javato be listed twice insourceSets.main.allSource. You can work around the problem by settingduplicatesStrategy = DuplicatesStrategy.EXCLUDEon thesourcesJartask.spring-projects-issues commentedon Apr 24, 2017
Sébastien Deleuze commented
I added a comment on Kotlin bug tracker specifying this bug is annoying for us.