build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
  3. * or more contributor license agreements. Licensed under the Elastic License
  4. * 2.0 and the Server Side Public License, v 1; you may not use this file except
  5. * in compliance with, at your election, the Elastic License 2.0 or the Server
  6. * Side Public License, v 1.
  7. */
  8. apply plugin: 'elasticsearch.publish'
  9. dependencies {
  10. // do not add non-test compile dependencies to secure-sm without a good reason to do so
  11. testImplementation "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
  12. testImplementation "junit:junit:${versions.junit}"
  13. testImplementation "org.hamcrest:hamcrest:${versions.hamcrest}"
  14. testImplementation(project(":test:framework")) {
  15. exclude group: 'org.elasticsearch', module: 'elasticsearch-secure-sm'
  16. }
  17. }
  18. tasks.named('forbiddenApisMain').configure {
  19. replaceSignatureFiles 'jdk-signatures'
  20. }
  21. // JAR hell is part of core which we do not want to add as a dependency
  22. tasks.named("jarHell").configure { enabled = false }
  23. tasks.named("testTestingConventions").configure {
  24. baseClass 'junit.framework.TestCase'
  25. }