build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Licensed to Elasticsearch under one or more contributor
  3. * license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright
  5. * ownership. Elasticsearch licenses this file to you under
  6. * the Apache License, Version 2.0 (the "License"); you may
  7. * not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. dependencies {
  20. compile 'org.ow2.asm:asm:7.1'
  21. compile 'org.ow2.asm:asm-tree:7.1'
  22. compile 'org.ow2.asm:asm-analysis:7.1'
  23. compile "org.apache.logging.log4j:log4j-api:${versions.log4j}"
  24. testCompile project(":test:framework")
  25. }
  26. loggerUsageCheck.enabled = false
  27. forbiddenApisMain.enabled = true // disabled by parent project
  28. forbiddenApisMain {
  29. replaceSignatureFiles 'jdk-signatures' // does not depend on core, only jdk signatures
  30. }
  31. jarHell.enabled = true // disabled by parent project
  32. thirdPartyAudit.ignoreMissingClasses (
  33. // log4j
  34. 'org.osgi.framework.AdaptPermission',
  35. 'org.osgi.framework.AdminPermission',
  36. 'org.osgi.framework.Bundle',
  37. 'org.osgi.framework.BundleActivator',
  38. 'org.osgi.framework.BundleContext',
  39. 'org.osgi.framework.BundleEvent',
  40. 'org.osgi.framework.SynchronousBundleListener',
  41. 'org.osgi.framework.wiring.BundleWire',
  42. 'org.osgi.framework.wiring.BundleWiring'
  43. )