mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-28 02:48:38 +00:00
Build: Omit dependency licenses check for elasticsearch deps (#28304)
Sometimes modules/plugins depend on locally built elasticsearch jars. This means not only that the jar is constantly changing (so no need for a sha check), but also that the license falls under the Elasticsearch license, and there is no need to keep another copy. This commit updates the dependencies checked by dependencyLicenses to exclude those that are built by elasticsearch.
This commit is contained in:
parent
9db9bd52f7
commit
19a2b01e43
@ -659,7 +659,10 @@ class BuildPlugin implements Plugin<Project> {
|
||||
Task precommit = PrecommitTasks.create(project, true)
|
||||
project.check.dependsOn(precommit)
|
||||
project.test.mustRunAfter(precommit)
|
||||
project.dependencyLicenses.dependencies = project.configurations.runtime - project.configurations.provided
|
||||
// only require dependency licenses for non-elasticsearch deps
|
||||
project.dependencyLicenses.dependencies = project.configurations.runtime.fileCollection {
|
||||
it.group.startsWith('org.elasticsearch') == false
|
||||
} - project.configurations.provided
|
||||
}
|
||||
|
||||
private static configureDependenciesInfo(Project project) {
|
||||
|
@ -52,13 +52,6 @@ dependencies {
|
||||
testCompile project(path: ':modules:parent-join', configuration: 'runtime')
|
||||
}
|
||||
|
||||
dependencyLicenses {
|
||||
// Don't check the client's license. We know it.
|
||||
dependencies = project.configurations.runtime.fileCollection {
|
||||
it.group.startsWith('org.elasticsearch') == false
|
||||
} - project.configurations.provided
|
||||
}
|
||||
|
||||
thirdPartyAudit.excludes = [
|
||||
// Commons logging
|
||||
'javax.servlet.ServletContextEvent',
|
||||
|
Loading…
x
Reference in New Issue
Block a user