blob: 26ff872450122e1ce2fa2f352d1af61e2f8aeab4 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'java-library'
description = 'Solrj - Solr Java Client'
dependencies {
implementation 'org.slf4j:slf4j-api'
runtimeOnly 'org.slf4j:jcl-over-slf4j'
implementation 'org.apache.commons:commons-math3'
api 'org.eclipse.jetty.http2:http2-client'
implementation 'org.eclipse.jetty.http2:http2-http-client-transport'
implementation 'org.eclipse.jetty:jetty-http'
implementation 'org.eclipse.jetty:jetty-client'
implementation 'org.eclipse.jetty:jetty-util'
runtimeOnly 'org.eclipse.jetty:jetty-alpn-java-client'
api('org.apache.httpcomponents:httpmime', {
exclude group: "commons-codec", module: "commons-codec"
exclude group: "commons-logging", module: "commons-logging"
})
implementation 'org.apache.httpcomponents:httpclient'
implementation 'org.apache.httpcomponents:httpcore'
// In 9.x, ending in 10, we depend on SolrJ modules. Users can opt-out.
runtimeOnly project(':solr:solrj-zookeeper')
testImplementation project(':solr:test-framework')
testImplementation project(':solr:core')
testImplementation project(':solr:solrj')
testRuntimeOnly project(':solr:modules:sql')
// ideally ZK centric tests move to solrj-zookeeper but sometimes we depend on ZK here anyway
testImplementation project(':solr:solrj-zookeeper')
testImplementation('org.apache.zookeeper:zookeeper', {
exclude group: "org.apache.yetus", module: "audience-annotations"
})
permitTestUnusedDeclared 'org.apache.zookeeper:zookeeper'
testImplementation 'org.apache.zookeeper:zookeeper-jute'
testImplementation 'org.apache.lucene:lucene-core'
testImplementation 'org.apache.lucene:lucene-test-framework'
testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
testImplementation 'junit:junit'
testImplementation 'org.hamcrest:hamcrest'
testImplementation 'commons-io:commons-io'
testImplementation 'javax.servlet:javax.servlet-api'
testImplementation 'org.eclipse.jetty:jetty-server'
testImplementation 'org.eclipse.jetty:jetty-servlet'
testImplementation 'org.eclipse.jetty:jetty-webapp'
testRuntimeOnly ('org.eclipse.jetty:jetty-alpn-java-server', {
exclude group: "org.eclipse.jetty.alpn", module: "alpn-api"
})
testImplementation('org.mockito:mockito-core', {
exclude group: "net.bytebuddy", module: "byte-buddy-agent"
})
testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl", {
exclude group: "org.apache.logging.log4j", module: "log4j-api"
})
testRuntimeOnly "org.hsqldb:hsqldb" // runtime because via JDBC reflection
testImplementation 'org.apache.commons:commons-lang3'
testImplementation 'com.google.guava:guava'
testImplementation 'io.dropwizard.metrics:metrics-core'
}