Don't include HLRC on downstream classpath twice (#53983)
This commit is contained in:
parent
5b9864db2c
commit
eda023e2c3
|
@ -493,7 +493,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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue