apply plugin: 'elasticsearch.build' description = 'JDBC driver for Elasticsearch' forbiddenApisMain { // does not depend on core, so only jdk and http signatures should be checked signaturesURLs = [this.class.getResource('/forbidden/jdk-signatures.txt')] } dependencies { /* We want to limit these dependencies so we don't have a huge jar. * Since we shade these dependencies we don't have to be super careful * but we have to be *somewhat* careful because things like commons logging * don't shadow properly. * * Note: we've temporarily disabled shading. */ compile xpackProject('plugin:sql:sql-shared-client') compile xpackProject('plugin:sql:sql-proto') runtime "com.fasterxml.jackson.core:jackson-core:${versions.jackson}" testCompile "org.elasticsearch.test:framework:${version}" } dependencyLicenses { mapping from: /sql-proto.*/, to: 'elasticsearch' mapping from: /sql-shared-client.*/, to: 'elasticsearch' mapping from: /jackson-.*/, to: 'jackson' mapping from: /lucene-.*/, to: 'lucene' mapping from: /elasticsearch-core.*/, to: 'elasticsearch' ignoreSha 'sql-proto' ignoreSha 'sql-shared-client' ignoreSha 'elasticsearch' ignoreSha 'elasticsearch-core' } // TODO: Restore shading when https://github.com/elastic/elasticsearch/pull/27955 gets in