Skip to content

Commit

Permalink
Use latest Gradle shadow plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Dec 18, 2024
1 parent fe85841 commit 8a1698c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ dependencies {
implementation("com.netflix.nebula:nebula-publishing-plugin:latest.release")
implementation("com.netflix.nebula:nebula-project-plugin:latest.release")
implementation("io.github.gradle-nexus:publish-plugin:latest.release")
implementation("gradle.plugin.com.github.johnrengelman:shadow:latest.release")
implementation("com.gradleup.shadow:com.gradleup.shadow.gradle.plugin:latest.release")
implementation("org.gradle:test-retry-gradle-plugin:latest.release")

implementation(platform("com.fasterxml.jackson:jackson-bom:2.17.+"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public void apply(Project project) {
project.getPlugins().apply(MavenResolvedDependenciesPlugin.class);
project.getPlugins().apply(MavenApacheLicensePlugin.class);

project.getPlugins().withId("com.github.johnrengelman.shadow", plugin ->
project.getPlugins().apply(MavenShadowPublishPlugin.class));
// This plugin does not do anything if the shadow plugin is not applied, so it is safe to always apply it
project.getPlugins().apply(MavenShadowPublishPlugin.class);

project.getTasks().withType(GenerateModuleMetadata.class).configureEach(task ->
task.setEnabled(false));
Expand Down

0 comments on commit 8a1698c

Please sign in to comment.