Skip to content
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

Inject Multi-Release attr if any dependency contains it #1239

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Feb 7, 2025

Closes #449.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@Goooler Goooler requested a review from Copilot February 7, 2025 07:21

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/JavaPluginTest.kt: Language not supported
  • src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt: Language not supported
@@ -324,4 +325,16 @@ public abstract class ShadowJar :
}
}
}

private fun findAndAppendMultiReleaseAttr() {
val includeMultiReleaseAttr = includedDependencies.files.filter { it.extension == "jar" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I don't see any easy way to find dependencies added in from.

@Goooler Goooler force-pushed the g/20250207/multi-release-attr branch 2 times, most recently from 05e6bb5 to d248ad1 Compare February 7, 2025 08:31
@Goooler Goooler force-pushed the g/20250207/multi-release-attr branch 2 times, most recently from ddd89b0 to 26056fd Compare February 7, 2025 10:06
@Goooler Goooler force-pushed the g/20250207/multi-release-attr branch from 26056fd to 66e849c Compare February 7, 2025 10:07
@Goooler Goooler marked this pull request as ready for review February 7, 2025 10:08
@Goooler Goooler enabled auto-merge (squash) February 7, 2025 10:08
@Goooler Goooler merged commit 8837a56 into main Feb 7, 2025
7 checks passed
@Goooler Goooler deleted the g/20250207/multi-release-attr branch February 7, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide automatic inclusion of Multi-Release in MANIFEST.MF
1 participant