2018-01-18 11:15:02 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This project is named sql-proto because it is in the
|
|
|
|
* "org.elasticsearch.plugin" group and it'd be super confusing for it to just
|
|
|
|
* be called "proto" there.
|
|
|
|
*/
|
|
|
|
|
2018-03-12 05:53:27 -04:00
|
|
|
import org.elasticsearch.gradle.precommit.PrecommitTasks
|
|
|
|
|
2018-01-18 11:15:02 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
|
|
|
|
description = 'Request and response objects shared by the cli, jdbc ' +
|
|
|
|
'and the Elasticsearch plugin'
|
2017-12-23 01:42:13 -05:00
|
|
|
|
|
|
|
dependencies {
|
2018-01-18 11:15:02 -05:00
|
|
|
/* We'd like to just depend on xcontent but that hasn't been factored
|
|
|
|
* into its own project yet. So we drag in the server and a bunch of
|
|
|
|
* its dependencies. */
|
|
|
|
compile (project(':server')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile (project(':libs:elasticsearch-core')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile "org.apache.lucene:lucene-core:${versions.lucene}"
|
|
|
|
compile 'joda-time:joda-time:2.9.9'
|
|
|
|
runtime "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
|
|
|
|
runtime "org.apache.logging.log4j:log4j-api:${versions.log4j}"
|
|
|
|
runtime "org.apache.logging.log4j:log4j-core:${versions.log4j}"
|
|
|
|
|
|
|
|
testCompile "org.elasticsearch.test:framework:${version}"
|
2017-12-23 01:42:13 -05:00
|
|
|
}
|
|
|
|
|
2018-03-12 05:53:27 -04:00
|
|
|
forbiddenApisMain {
|
|
|
|
//sql does not depend on server, so only jdk signatures should be checked
|
|
|
|
signaturesURLs = [PrecommitTasks.getResource('/forbidden/jdk-signatures.txt')]
|
|
|
|
}
|
|
|
|
|
2017-12-23 01:42:13 -05:00
|
|
|
dependencyLicenses {
|
2018-01-18 11:15:02 -05:00
|
|
|
mapping from: /elasticsearch-core.*/, to: 'elasticsearch'
|
|
|
|
mapping from: /jackson-.*/, to: 'jackson'
|
|
|
|
mapping from: /lucene-.*/, to: 'lucene'
|
|
|
|
ignoreSha 'elasticsearch'
|
|
|
|
ignoreSha 'elasticsearch-core'
|
2017-12-23 01:42:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
thirdPartyAudit.excludes = [
|
|
|
|
'com.fasterxml.jackson.dataformat.yaml.YAMLFactory',
|
|
|
|
'com.fasterxml.jackson.dataformat.yaml.YAMLMapper',
|
|
|
|
|
|
|
|
// from com.fasterxml.jackson.dataformat.yaml.YAMLMapper (jackson-dataformat-yaml)
|
|
|
|
'com.fasterxml.jackson.databind.ObjectMapper',
|
|
|
|
'org.fusesource.jansi.Ansi',
|
|
|
|
'org.fusesource.jansi.AnsiRenderer$Code',
|
|
|
|
|
|
|
|
// from log4j
|
|
|
|
'com.conversantmedia.util.concurrent.DisruptorBlockingQueue',
|
|
|
|
'com.conversantmedia.util.concurrent.SpinPolicy',
|
|
|
|
'com.fasterxml.jackson.annotation.JsonInclude$Include',
|
|
|
|
'com.fasterxml.jackson.databind.DeserializationContext',
|
|
|
|
'com.fasterxml.jackson.databind.DeserializationFeature',
|
|
|
|
'com.fasterxml.jackson.databind.JsonMappingException',
|
|
|
|
'com.fasterxml.jackson.databind.JsonNode',
|
|
|
|
'com.fasterxml.jackson.databind.Module$SetupContext',
|
|
|
|
'com.fasterxml.jackson.databind.ObjectReader',
|
|
|
|
'com.fasterxml.jackson.databind.ObjectWriter',
|
|
|
|
'com.fasterxml.jackson.databind.SerializerProvider',
|
|
|
|
'com.fasterxml.jackson.databind.deser.std.StdDeserializer',
|
|
|
|
'com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer',
|
|
|
|
'com.fasterxml.jackson.databind.module.SimpleModule',
|
|
|
|
'com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter',
|
|
|
|
'com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider',
|
|
|
|
'com.fasterxml.jackson.databind.ser.std.StdScalarSerializer',
|
|
|
|
'com.fasterxml.jackson.databind.ser.std.StdSerializer',
|
|
|
|
'com.fasterxml.jackson.dataformat.xml.JacksonXmlModule',
|
|
|
|
'com.fasterxml.jackson.dataformat.xml.XmlMapper',
|
|
|
|
'com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter',
|
|
|
|
'com.fasterxml.jackson.databind.node.JsonNodeFactory',
|
|
|
|
'com.fasterxml.jackson.databind.node.ObjectNode',
|
|
|
|
'com.lmax.disruptor.BlockingWaitStrategy',
|
|
|
|
'com.lmax.disruptor.BusySpinWaitStrategy',
|
|
|
|
'com.lmax.disruptor.EventFactory',
|
|
|
|
'com.lmax.disruptor.EventTranslator',
|
|
|
|
'com.lmax.disruptor.EventTranslatorTwoArg',
|
|
|
|
'com.lmax.disruptor.EventTranslatorVararg',
|
|
|
|
'com.lmax.disruptor.ExceptionHandler',
|
|
|
|
'com.lmax.disruptor.LifecycleAware',
|
|
|
|
'com.lmax.disruptor.RingBuffer',
|
|
|
|
'com.lmax.disruptor.Sequence',
|
|
|
|
'com.lmax.disruptor.SequenceReportingEventHandler',
|
|
|
|
'com.lmax.disruptor.SleepingWaitStrategy',
|
|
|
|
'com.lmax.disruptor.TimeoutBlockingWaitStrategy',
|
|
|
|
'com.lmax.disruptor.WaitStrategy',
|
|
|
|
'com.lmax.disruptor.YieldingWaitStrategy',
|
|
|
|
'com.lmax.disruptor.dsl.Disruptor',
|
|
|
|
'com.lmax.disruptor.dsl.ProducerType',
|
|
|
|
'javax.jms.Connection',
|
|
|
|
'javax.jms.ConnectionFactory',
|
|
|
|
'javax.jms.Destination',
|
|
|
|
'javax.jms.JMSException',
|
|
|
|
'javax.jms.MapMessage',
|
|
|
|
'javax.jms.Message',
|
|
|
|
'javax.jms.MessageConsumer',
|
|
|
|
'javax.jms.MessageProducer',
|
|
|
|
'javax.jms.Session',
|
|
|
|
'javax.mail.Authenticator',
|
|
|
|
'javax.mail.Message$RecipientType',
|
|
|
|
'javax.mail.PasswordAuthentication',
|
|
|
|
'javax.mail.Session',
|
|
|
|
'javax.mail.Transport',
|
|
|
|
'javax.mail.internet.InternetAddress',
|
|
|
|
'javax.mail.internet.InternetHeaders',
|
|
|
|
'javax.mail.internet.MimeBodyPart',
|
|
|
|
'javax.mail.internet.MimeMessage',
|
|
|
|
'javax.mail.internet.MimeMultipart',
|
|
|
|
'javax.mail.internet.MimeUtility',
|
|
|
|
'javax.mail.util.ByteArrayDataSource',
|
|
|
|
'javax.persistence.AttributeConverter',
|
|
|
|
'javax.persistence.EntityManager',
|
|
|
|
'javax.persistence.EntityManagerFactory',
|
|
|
|
'javax.persistence.EntityTransaction',
|
|
|
|
'javax.persistence.Persistence',
|
|
|
|
'javax.persistence.PersistenceException',
|
|
|
|
'org.apache.commons.compress.compressors.CompressorStreamFactory',
|
|
|
|
'org.apache.commons.compress.utils.IOUtils',
|
|
|
|
'org.apache.commons.csv.CSVFormat',
|
|
|
|
'org.apache.commons.csv.QuoteMode',
|
|
|
|
'org.apache.kafka.clients.producer.Callback',
|
|
|
|
'org.apache.kafka.clients.producer.KafkaProducer',
|
|
|
|
'org.apache.kafka.clients.producer.Producer',
|
|
|
|
'org.apache.kafka.clients.producer.ProducerRecord',
|
|
|
|
'org.apache.kafka.clients.producer.RecordMetadata',
|
|
|
|
'org.codehaus.stax2.XMLStreamWriter2',
|
|
|
|
'org.jctools.queues.MessagePassingQueue$Consumer',
|
|
|
|
'org.jctools.queues.MpscArrayQueue',
|
|
|
|
'org.osgi.framework.AdaptPermission',
|
|
|
|
'org.osgi.framework.AdminPermission',
|
|
|
|
'org.osgi.framework.Bundle',
|
|
|
|
'org.osgi.framework.BundleActivator',
|
|
|
|
'org.osgi.framework.BundleContext',
|
|
|
|
'org.osgi.framework.BundleEvent',
|
|
|
|
'org.osgi.framework.BundleReference',
|
|
|
|
'org.osgi.framework.FrameworkUtil',
|
|
|
|
'org.osgi.framework.ServiceRegistration',
|
|
|
|
'org.osgi.framework.SynchronousBundleListener',
|
|
|
|
'org.osgi.framework.wiring.BundleWire',
|
|
|
|
'org.osgi.framework.wiring.BundleWiring',
|
|
|
|
'org.zeromq.ZMQ$Context',
|
|
|
|
'org.zeromq.ZMQ$Socket',
|
|
|
|
'org.zeromq.ZMQ'
|
|
|
|
]
|