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

Adjust property initializations and modifiers in ShadowJar #1090

Merged
merged 10 commits into from
Dec 6, 2024

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Dec 6, 2024

Follow up #1074.


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

@Goooler Goooler force-pushed the g/20241206/convention-in-shadow-jar branch from 84c6342 to a384bd5 Compare December 6, 2024 02:30
Comment on lines -94 to -99
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()) })
Copy link
Member Author

Choose a reason for hiding this comment

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

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')

@Goooler Goooler requested a review from Copilot December 6, 2024 02:45

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.
@Goooler Goooler requested a review from Copilot December 6, 2024 02:47

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.
@Goooler Goooler merged commit eee7e8c into main Dec 6, 2024
7 checks passed
@Goooler Goooler deleted the g/20241206/convention-in-shadow-jar branch December 6, 2024 12:58
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.

1 participant