-
Notifications
You must be signed in to change notification settings - Fork 979
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
Disable kotlinSourcesJar since it conflicts with sourcesJar #5151
Comments
Thank you for the issue!
git checkout v1.13.0
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone final pTML -x test
./gradlew pTML Diffing 1.12.x with 1.13.x does not help much, I can't see any suspicious changes. I'm continuing the investigations tomorrow but is this causing any issues to you right now? Can the IDE automatically attach source for 1.13.0? |
I investigated this a bit further, I found a simpler way of reproducing it (than the above) with ./gradlew :micrometer-core:sourcesJar :micrometer-core:pTML -x check --console=plain --no-build-cache If I run just one of these tasks or run them after each other in separate gradle commands, I cannot repro it so these are ok: ./gradlew :micrometer-core:sourcesJar -x check --console=plain --no-build-cache
./gradlew :micrometer-core:pTML -x check --console=plain --no-build-cache It seems I can "fix" this by downgrading the Kotlin plugin(!), i.e. changing this line:
to alias(libs.plugins.kotlin17) Here are the steps you should be able to repro this too (first checkout ./gradlew clean
rm -rf ~/.gradle/caches/build-cache-1/
./gradlew :micrometer-core:sourcesJar :micrometer-core:pTML -x check --console=plain --no-build-cache
unzip -l micrometer-core/build/libs/micrometer-core-*-sources.jar | head -n20 Then downgrade the Kotlin plugin: I tried to upgrade the Kotlin plugin from There is another interesting thing I found, the
When
|
It seems the ./gradlew :micrometer-core:kotlinSourcesJar :micrometer-core:sourcesJar --no-build-cache If ./gradlew :micrometer-core:sourcesJar :micrometer-core:kotlinSourcesJar --no-build-cache or just: ./gradlew :micrometer-core:sourcesJar --no-build-cache and ./gradlew :micrometer-core:kotlinSourcesJar --no-build-cache This seems to be the same issue: https://youtrack.jetbrains.com/issue/KT-54207/Kotlin-has-two-sources-tasks-kotlinSourcesJar-and-sourcesJar-that-archives-sources-to-the-same-artifact Disabling |
I think this should be fixed in earlier versions too (whenever we use the Kotlin plugin): |
The new snapshot is published, you can see the diff between the old sources jar and the new one:
|
This is the archive of the source jar in the central repository
https://repo1.maven.org/maven2/io/micrometer/micrometer-core/1.13.0/micrometer-core-1.13.0-sources.jar
It looks like it adds an extra layer of
main
directory?The text was updated successfully, but these errors were encountered: