-
-
Notifications
You must be signed in to change notification settings - Fork 424
Move extensions of ShadowJar
#1566
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
Conversation
…dow-jar # Conflicts: # src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt
9d969b9 to
bd3b389
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR moves extension functions and constants related to ShadowJar from the ShadowJavaPlugin companion object to the ShadowJar companion object, improving code organization by keeping these utilities closer to the task they operate on.
- Moved
SHADOW_JAR_TASK_NAMEconstant andshadowJarextension property toShadowJarcompanion object - Moved
registerShadowJarCommonfunction toShadowJarcompanion object with signature changes - Updated all import statements across plugin and test files to reflect the new locations
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| ShadowJar.kt | Added companion object with moved constants, extension properties, and utility functions |
| ShadowJavaPlugin.kt | Removed moved items from companion object and updated imports |
| ShadowKmpPlugin.kt | Updated import to use new location of registerShadowJarCommon |
| ShadowApplicationPlugin.kt | Updated import to use new location of shadowJar extension |
| RelocationTest.kt | Updated import to use new location of SHADOW_JAR_TASK_NAME |
| MinimizationTest.kt | Updated import to use new location of SHADOW_JAR_TASK_NAME |
| JavaPluginTest.kt | Updated import and fixed test classifier from "tests" to "test" |
| BasePluginTest.kt | Updated import to use new location of SHADOW_JAR_TASK_NAME |
| lint-baseline.xml | Updated line numbers due to code movement |
| custom-tasks/README.md | Updated documentation to use "test" classifier instead of "tests" |
| shadow.api | Updated API signature to reflect moved items |
No description provided.