vlsi commented on PR #3823:
URL: https://github.com/apache/solr/pull/3823#issuecomment-3476149357
Note that I went with "forbid commons-lang on the `compileClasspath` and
`runtimeClasspath`":
```gradle
configurations
.matching {
it.name == "compileClasspath" || it.name == "runtimeClasspath"
}
.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == "org.apache.commons" &&
requested.name == "commons-lang3") {
throw new GradleException(
"Use JDK classes where possible, do not add
org.apache.commons:commons-lang3 dependency")
}
}
}
```
So if a transitive dependency selects to depend on commons-lang3, then the
validation would trigger.
Unfortunately, `Testcontainers` depends on `commons-compress` which depends
on `commons-lang3` so we can't completely remove `commons-lang3` from all the
configurations yet.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]