build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import org.elasticsearch.gradle.internal.conventions.precommit.LicenseHeadersTask
  2. /*
  3. * Licensed to Elasticsearch B.V. under one or more contributor
  4. * license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright
  6. * ownership. Elasticsearch B.V. licenses this file to you under
  7. * the Apache License, Version 2.0 (the "License"); you may
  8. * not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. apply plugin: 'elasticsearch.build'
  21. apply plugin: 'elasticsearch.publish'
  22. dependencies {
  23. testImplementation(project(":test:framework")) {
  24. exclude group: 'org.elasticsearch', module: 'elasticsearch-tdigest'
  25. }
  26. testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
  27. }
  28. tasks.named('forbiddenApisMain').configure {
  29. // t-digest does not depend on core, so only jdk signatures should be checked
  30. replaceSignatureFiles 'jdk-signatures'
  31. }
  32. ext.projectLicenses.set(['The Apache Software License, Version 2.0': 'http://www.apache.org/licenses/LICENSE-2.0'])
  33. licenseFile.set(rootProject.file('licenses/APACHE-LICENSE-2.0.txt'))
  34. tasks.withType(LicenseHeadersTask.class).configureEach {
  35. approvedLicenses = ['Apache', 'Generated', 'Vendored']
  36. }