-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every java source file is duplicated in the 3.1.0 source jar in the central maven repository #887
Comments
I checked it on windows with Total Commander and it does show the java files duplicated for me inside the 3.1.0 source jar. Also the 3.0.7 source jar is less than half the size of the 3.1.0 source jar (600 KB vs 1.3 MB). |
I see the duplication: Also this Java 9 program shows there are duplicate entries: try (JarFile jar = new JarFile("reactor-core-3.1.0.RELEASE-sources.jar")) {
jar.stream()
.collect(Collectors.groupingBy(e -> e.getName()))
.entrySet()
.stream()
.filter(e -> e.getValue().size() > 1)
.forEach(System.out::println);
} |
Thanks. Upon extraction or listing on the command line with investigating... @akiraly has it caused any issue for you eg. in the IDE so far? |
It did not cause any issues for me so far so IMHO this is just a minor issue. |
Could be Gradle 4.2 or a config problem with the subprojects: https://stackoverflow.com/questions/34996571/gradle-multi-project-builds-with-duplicate-source-files |
Seems to be https://youtrack.jetbrains.com/issue/KT-17564 |
Looks like this is indeed the Kotlin plugin issue, and a workaround is to explicitly exclude duplicates ( @akiraly @akarnokd @sdeleuze thanks for checking the jar with various tools 👍 (tested integration in IntelliJ 2017.2 and Eclipse Neon as well) So far it doesn't look like it is causing any critical side effect 😌 I'll list this issue as a know "bug" of the 3.1.0 RELEASE in the release notes and also link to it in the announcement blog I'm preparing. I'll also keep it open for a week or so, in order to give a chance for people to comment if they encounter any major usability issue as a result of this situation (you never know). |
This issue has been fixed, the fix will be available in Kotlin Gradle plugin 1.1.60 https://youtrack.jetbrains.com/issue/KT-17564 |
See https://youtrack.jetbrains.com/issue/KT-17564 Will be fixed in kotlin-gradle-plugin 1.1.60
See https://youtrack.jetbrains.com/issue/KT-17564 Will be fixed in kotlin-gradle-plugin 1.1.60
closing this as |
Expected behavior
The java source files should not be duplicated
Actual behavior
They are duplicated
Steps to reproduce
Download file from http://repo1.maven.org/maven2/io/projectreactor/reactor-core/3.1.0.RELEASE/reactor-core-3.1.0.RELEASE-sources.jar
Check contents of the jar.
Reactor Core version
3.1.0.RELEASE
JVM version (e.g.
java -version
)N/A
OS version (e.g.
uname -a
)N/A
The text was updated successfully, but these errors were encountered: