-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Some published sources
JARs do not have the correct structure
#3474
Comments
Thanks for bringing this to our attention, @aukevanleeuwen! 👍 I confirmed the claims for We'll see if we can fix this for the upcoming |
.jar
files are not having the correct structuresources
JARs do not have the correct structure
I ran a $ git bisect start r5.10.0 r5.9.3
$ git bisect run sh -c "gw :jJE:clean :jJE:pTML --no-build-cache -x :junit-jupiter-engine:test && ! (unzip -t junit-jupiter-engine/build/libs/junit-jupiter-engine-*-sources.jar | grep main)"
c3e3c8b82cefea0ccedc47aa1098498ea9a911b8 is the first bad commit
commit c3e3c8b82cefea0ccedc47aa1098498ea9a911b8
Author: Marc Philipp <mail@marcphilipp.de>
Date: Thu Jun 15 08:25:58 2023 +0200
Upgradle to 8.2-rc-2 (#3351)
gradle/wrapper/gradle-wrapper.jar | Bin 62076 -> 63282 bytes
gradle/wrapper/gradle-wrapper.properties | 5 +++--
gradlew | 5 ++++-
3 files changed, 7 insertions(+), 3 deletions(-)
bisect found first bad commit |
Looks like this is the root cause: https://youtrack.jetbrains.com/issue/kt-54207 |
👍 Thanks! That would have taken me a lot longer to figure out for sure ;-) I'm still a bit confused how that bisect ended up on that commit even. Either way: I've also verified it on a |
The upgrade from Gradle 8.1 to 8.2-rc-2 included an upgrade of the Kotlin plugin which now seems to be registering an extra |
This comment was marked as outdated.
This comment was marked as outdated.
Now that I'm reading your question again: I think the answer is: yes, it's supposed to be fixed for all these cases. |
@scordio : indeed, all those 3 were mentioned in the original description under 'Remark' as well. |
This comment was marked as outdated.
This comment was marked as outdated.
Yes, it's fixed for all of them. |
Steps to reproduce
main
folder that shouldn't be there:Context
Remark
Not all source
jars
are wrong. I've tried to fix it myself and issue a PR, but I don't understand exactly where it's going wrong.To the best of my skills I think I can narrow it down to everywhere where the plugin
id("junitbuild.kotlin-library-conventions")
is used rather thanid("junitbuild.java-library-conventions")
.I tried to narrow it down with:
./gradlew publishToMavenLocal
main/
directory has been found in the givenjar
file:main
was not found:The text was updated successfully, but these errors were encountered: