Skip to content

Commit

Permalink
Merge pull request #74 from nebula-plugins/handle-shadow-migration
Browse files Browse the repository at this point in the history
add support for newer shadow gradle plugin id: com.gradleup.shadow
  • Loading branch information
rpalcolea authored Aug 22, 2024
2 parents bb246bf + 310e28c commit fd353f0
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,19 @@ class PublishingPlugin implements Plugin<Project> {


project.plugins.withId('com.github.johnrengelman.shadow') {
boolean gradleModuleMetadataPublishingForShadowPluginEnabled = FeatureFlags.isFeatureEnabled(project, FeatureFlags.GRADLE_METADATA_SHADOW_PUBLISHING_SUPPORT, false)
if(gradleModuleMetadataPublishingForShadowPluginEnabled) {
return
}
disableGradleModuleMetadataTask(project)
configureGradleModuleMetadata(project)
}
project.plugins.withId('com.gradleup.shadow') {
configureGradleModuleMetadata(project)
}
}

private void configureGradleModuleMetadata(Project project) {
boolean gradleModuleMetadataPublishingForShadowPluginEnabled = FeatureFlags.isFeatureEnabled(project, FeatureFlags.GRADLE_METADATA_SHADOW_PUBLISHING_SUPPORT, false)
if(gradleModuleMetadataPublishingForShadowPluginEnabled) {
return
}
disableGradleModuleMetadataTask(project)
}

private void disableGradleModuleMetadataTask(Project project) {
Expand Down

0 comments on commit fd353f0

Please sign in to comment.