Skip to content

Commit

Permalink
Don't include HLRC on downstream classpath twice (#53983)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Mar 23, 2020
1 parent 8ad4e7a commit 53769f9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ class BuildPlugin implements Plugin<Project> {

project.pluginManager.withPlugin('com.github.johnrengelman.shadow') {
// Ensure that when we are compiling against the "original" JAR that we also include any "shadow" dependencies on the compile classpath
project.configurations.getByName(JavaPlugin.API_ELEMENTS_CONFIGURATION_NAME).extendsFrom(project.configurations.getByName(ShadowBasePlugin.CONFIGURATION_NAME))
project.configurations.getByName(ShadowBasePlugin.CONFIGURATION_NAME).dependencies.all { Dependency dependency ->
project.configurations.getByName(JavaPlugin.API_ELEMENTS_CONFIGURATION_NAME).dependencies.add(dependency)
}
}
}

Expand Down

0 comments on commit 53769f9

Please sign in to comment.