mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-23 14:47:31 -04:00
* Entitlement tools: SecurityManager scanner (#116020) * Fix entitlement tools to build (#117351) This commit adjusts the common lib of entitlement tools to use elasticsearch.build so that it gets java version configuration automatically. Additionally the mrjar plugin is removed from the core lib since it is not used there. * fix compile --------- Co-authored-by: Lorenzo Dematté <lorenzo.dematte@elastic.co>
49 lines
1.8 KiB
Groovy
49 lines
1.8 KiB
Groovy
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
|
*/
|
|
|
|
apply plugin: 'elasticsearch.publish'
|
|
|
|
dependencies {
|
|
// This dependency is used only by :libs:core for null-checking interop with other tools
|
|
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
|
|
compileOnly project(':libs:logging')
|
|
|
|
testImplementation "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
|
|
testImplementation "junit:junit:${versions.junit}"
|
|
testImplementation "org.hamcrest:hamcrest:${versions.hamcrest}"
|
|
|
|
testImplementation(project(":test:framework")) {
|
|
exclude group: 'org.elasticsearch', module: 'core'
|
|
}
|
|
}
|
|
|
|
tasks.named('forbiddenApisMain').configure {
|
|
// :libs:core does not depend on server
|
|
// TODO: Need to decide how we want to handle for forbidden signatures with the changes to server
|
|
replaceSignatureFiles 'jdk-signatures'
|
|
}
|
|
|
|
tasks.named("thirdPartyAudit").configure {
|
|
ignoreMissingClasses(
|
|
// from log4j
|
|
'org/osgi/framework/AdaptPermission',
|
|
'org/osgi/framework/AdminPermission',
|
|
'org/osgi/framework/Bundle',
|
|
'org/osgi/framework/BundleActivator',
|
|
'org/osgi/framework/BundleContext',
|
|
'org/osgi/framework/BundleEvent',
|
|
'org/osgi/framework/SynchronousBundleListener',
|
|
'org/osgi/framework/wiring/BundleWire',
|
|
'org/osgi/framework/wiring/BundleWiring'
|
|
)
|
|
}
|
|
|
|
dependencies {
|
|
jarHell sourceSets.main.output
|
|
}
|