2017-06-27 17:54:07 -04:00
|
|
|
import org.elasticsearch.gradle.test.RunTask
|
2017-06-19 15:19:54 -04:00
|
|
|
|
2017-06-21 12:12:19 -04:00
|
|
|
description = 'JDBC driver for Elasticsearch'
|
|
|
|
|
2017-06-29 14:31:23 -04:00
|
|
|
forbiddenApisMain {
|
|
|
|
// does not depend on core, so only jdk and http signatures should be checked
|
|
|
|
signaturesURLs = [this.class.getResource('/forbidden/jdk-signatures.txt')]
|
|
|
|
}
|
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
dependencies {
|
2017-10-30 18:59:01 -04:00
|
|
|
compile project(':x-pack-elasticsearch:sql:shared-client')
|
2017-06-29 14:31:23 -04:00
|
|
|
compile project(':x-pack-elasticsearch:sql:jdbc-proto')
|
2017-07-12 17:32:13 -04:00
|
|
|
compile project(':x-pack-elasticsearch:sql:shared-proto')
|
2017-07-07 10:32:23 -04:00
|
|
|
/* We want to limit these dependencies so do not add anything to this list
|
|
|
|
* without serious consideration, and probably shading. */
|
2017-06-19 15:19:54 -04:00
|
|
|
}
|
|
|
|
|
2017-06-20 15:53:39 -04:00
|
|
|
dependencyLicenses {
|
|
|
|
mapping from: /jdbc-proto.*/, to: 'elasticsearch'
|
2017-10-30 18:59:01 -04:00
|
|
|
mapping from: /shared-client.*/, to: 'elasticsearch'
|
2017-07-12 17:32:13 -04:00
|
|
|
mapping from: /shared-proto.*/, to: 'elasticsearch'
|
2017-06-20 15:53:39 -04:00
|
|
|
ignoreSha 'jdbc-proto'
|
2017-10-30 18:59:01 -04:00
|
|
|
ignoreSha 'shared-client'
|
2017-07-12 17:32:13 -04:00
|
|
|
ignoreSha 'shared-proto'
|
2017-06-20 15:53:39 -04:00
|
|
|
}
|
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
jar {
|
2017-07-07 10:32:23 -04:00
|
|
|
// Bundle all dependencies into the jar.
|
|
|
|
from {
|
|
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
}
|
2017-06-19 15:19:54 -04:00
|
|
|
}
|