-
Notifications
You must be signed in to change notification settings - Fork 407
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
Adjust property initializations and modifiers in ShadowJar
#1090
Conversation
84c6342
to
a384bd5
Compare
shadow.enableRelocation.convention(false) | ||
shadow.minimizeJar.convention(false) | ||
shadow.relocationPrefix.convention(ShadowBasePlugin.SHADOW) | ||
shadow.dependencyFilter.convention(DefaultDependencyFilter(project)) | ||
shadow.configurations.convention(listOf(project.runtimeConfiguration)) | ||
shadow.includedDependencies.setFrom(shadow.dependencyFilter.map { it.resolve(shadow.configurations.get()) }) |
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.
shadow/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.groovy
Lines 98 to 103 in 09be106
shadow.from(sourceSets.main.output) | |
shadow.configurations = [ | |
project.configurations.findByName(JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME) ?: | |
project.configurations.runtime, | |
] | |
shadow.exclude('META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'module-info.class') |
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.
Copilot reviewed 2 out of 6 changed files in this pull request and generated no suggestions.
Files not reviewed (4)
- api/shadow.api: Language not supported
- src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPluginSpec.groovy: Language not supported
- src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt: Language not supported
- src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt: Language not supported
Comments skipped due to low confidence (1)
src/docs/changes/README.md:9
- The phrase 'This fix the regression' should be corrected to 'This fixes the regression'.
This fix the regression for registering custom `ShadowJar` tasks.
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.
Copilot reviewed 2 out of 6 changed files in this pull request and generated no suggestions.
Files not reviewed (4)
- api/shadow.api: Language not supported
- src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPluginSpec.groovy: Language not supported
- src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt: Language not supported
- src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt: Language not supported
Comments skipped due to low confidence (1)
src/docs/changes/README.md:8
- The sentence should be 'This fixes the regression for registering custom
ShadowJar
tasks.'
- This fix the regression for registering custom `ShadowJar` tasks.
Follow up #1074.