Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16006: Fix declared/unused dependency warnings

Kevin Risden0cb57d5ab674
diff --git a/solr/core/build.gradle b/solr/core/build.gradle
index 853b0c0e7c9..ae9d01203db 100644
--- a/solr/core/build.gradle
+++ b/solr/core/build.gradle
@@ -26,6 +26,7 @@ dependencies {
// It is not included in the release so exclude from checks.
compileOnly 'com.github.spotbugs:spotbugs-annotations'
testCompileOnly 'com.github.spotbugs:spotbugs-annotations'
+ permitUnusedDeclared 'com.github.spotbugs:spotbugs-annotations'
// Exclude these from jar validation and license checks.
configurations.jarValidation {
exclude group: "com.github.spotbugs", module: "spotbugs-annotations"
@@ -44,13 +45,14 @@ dependencies {
api project(':solr:solrj')
api project(':solr:server')
+ permitUnusedDeclared project(':solr:server')
// Non-API below; although there are exceptions
- implementation "org.apache.lucene:lucene-analysis-kuromoji"
- implementation "org.apache.lucene:lucene-analysis-nori"
- implementation "org.apache.lucene:lucene-analysis-phonetic"
- implementation "org.apache.lucene:lucene-backward-codecs"
+ runtimeOnly "org.apache.lucene:lucene-analysis-kuromoji"
+ runtimeOnly "org.apache.lucene:lucene-analysis-nori"
+ runtimeOnly "org.apache.lucene:lucene-analysis-phonetic"
+ runtimeOnly "org.apache.lucene:lucene-backward-codecs"
implementation "org.apache.lucene:lucene-codecs"
implementation "org.apache.lucene:lucene-classification"
implementation "org.apache.lucene:lucene-expressions"
@@ -147,8 +149,6 @@ dependencies {
implementation 'io.dropwizard.metrics:metrics-jmx'
implementation 'io.dropwizard.metrics:metrics-jvm'
- testImplementation 'org.slf4j:jcl-over-slf4j'
-
// For faster XML processing than the JDK
implementation 'org.codehaus.woodstox:stax2-api'
implementation 'com.fasterxml.woodstox:woodstox-core'
@@ -167,9 +167,11 @@ dependencies {
// sub-deps of calcite-core that we reference directly
implementation ('org.apache.calcite:calcite-linq4j') { transitive = false }
implementation ('org.apache.calcite.avatica:avatica-core') { transitive = false }
+ permitUnusedDeclared 'org.apache.calcite.avatica:avatica-core'
// Hadoop auth framework
- implementation ('org.apache.hadoop:hadoop-annotations')
+ implementation 'org.apache.hadoop:hadoop-annotations'
+ permitUnusedDeclared 'org.apache.hadoop:hadoop-annotations'
implementation ('org.apache.hadoop:hadoop-auth') { transitive = false }
implementation ('org.apache.hadoop:hadoop-common') { transitive = false }
// transitive of hadoop-common; used by Kerberos auth
@@ -186,9 +188,11 @@ dependencies {
exclude group:'org.apache.kerby', module:'token-provider'
})
- testImplementation "org.apache.lucene:lucene-analysis-icu"
+ testRuntimeOnly 'org.slf4j:jcl-over-slf4j'
+
+ testRuntimeOnly "org.apache.lucene:lucene-analysis-icu"
- testImplementation project(':solr:modules:analysis-extras')
+ testRuntimeOnly project(':solr:modules:analysis-extras')
testImplementation project(':solr:core')
testImplementation project(':solr:test-framework')
diff --git a/solr/modules/analysis-extras/build.gradle b/solr/modules/analysis-extras/build.gradle
index 7da2d4b3222..db0a50db438 100644
--- a/solr/modules/analysis-extras/build.gradle
+++ b/solr/modules/analysis-extras/build.gradle
@@ -27,11 +27,10 @@ dependencies {
implementation 'commons-io:commons-io'
implementation 'com.ibm.icu:icu4j'
implementation 'org.apache.lucene:lucene-analysis-icu'
- implementation 'org.apache.lucene:lucene-analysis-smartcn'
- implementation 'org.apache.lucene:lucene-analysis-morfologik'
+ runtimeOnly 'org.apache.lucene:lucene-analysis-morfologik'
implementation 'org.apache.lucene:lucene-analysis-opennlp'
- implementation 'org.apache.lucene:lucene-analysis-smartcn'
- implementation 'org.apache.lucene:lucene-analysis-stempel'
+ runtimeOnly 'org.apache.lucene:lucene-analysis-smartcn'
+ runtimeOnly 'org.apache.lucene:lucene-analysis-stempel'
implementation 'org.apache.lucene:lucene-core'
implementation 'org.apache.opennlp:opennlp-tools'
implementation 'org.slf4j:slf4j-api'
diff --git a/solr/modules/clustering/build.gradle b/solr/modules/clustering/build.gradle
index 87c60561b99..fa0811dda7d 100644
--- a/solr/modules/clustering/build.gradle
+++ b/solr/modules/clustering/build.gradle
@@ -23,10 +23,8 @@ dependencies {
implementation project(':solr:core')
implementation project(':solr:solrj')
- implementation 'org.apache.lucene:lucene-analysis-common'
implementation 'org.apache.lucene:lucene-core'
- implementation 'commons-io:commons-io'
implementation 'org.carrot2:carrot2-core'
implementation 'org.slf4j:slf4j-api'
@@ -34,4 +32,6 @@ dependencies {
testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
testImplementation 'junit:junit'
testImplementation 'org.hamcrest:hamcrest'
+
+ testImplementation 'commons-io:commons-io'
}
diff --git a/solr/modules/hdfs/build.gradle b/solr/modules/hdfs/build.gradle
index 3e0c17a3cdf..a261f8514d9 100644
--- a/solr/modules/hdfs/build.gradle
+++ b/solr/modules/hdfs/build.gradle
@@ -28,7 +28,9 @@ dependencies {
implementation 'org.slf4j:slf4j-api'
// Hadoop dependencies
+ permitUnusedDeclared 'org.apache.hadoop:hadoop-annotations'
implementation ('org.apache.hadoop:hadoop-annotations') { transitive = false }
+ permitUnusedDeclared 'org.apache.hadoop:hadoop-auth'
implementation ('org.apache.hadoop:hadoop-auth') { transitive = false }
implementation ('org.apache.hadoop:hadoop-common') { transitive = false }
// transitive of hadoop-common; used by HDFS
diff --git a/solr/modules/jaegertracer-configurator/build.gradle b/solr/modules/jaegertracer-configurator/build.gradle
index 0ae23dd89a4..fabf02fc004 100644
--- a/solr/modules/jaegertracer-configurator/build.gradle
+++ b/solr/modules/jaegertracer-configurator/build.gradle
@@ -24,7 +24,7 @@ dependencies {
implementation 'io.opentracing:opentracing-api'
implementation 'io.jaegertracing:jaeger-core'
- implementation ("io.jaegertracing:jaeger-thrift", {
+ runtimeOnly ("io.jaegertracing:jaeger-thrift", {
exclude group: "com.squareup.okhttp3", module: "okhttp"
exclude group: "com.google.code.gson", module: "gson" // for "RemoteControlledSampler", optional
exclude group: "javax.annotation", module: "javax.annotation-api"
diff --git a/solr/modules/jwt-auth/build.gradle b/solr/modules/jwt-auth/build.gradle
index e747491cb98..9e137e1bced 100644
--- a/solr/modules/jwt-auth/build.gradle
+++ b/solr/modules/jwt-auth/build.gradle
@@ -28,15 +28,12 @@ dependencies {
implementation 'commons-io:commons-io'
implementation 'io.dropwizard.metrics:metrics-core'
implementation 'javax.servlet:javax.servlet-api'
- implementation 'org.apache.commons:commons-lang3'
implementation 'org.apache.httpcomponents:httpclient'
implementation 'org.apache.httpcomponents:httpcore'
implementation 'org.eclipse.jetty:jetty-client'
implementation ('com.google.guava:guava') { transitive = false }
implementation 'org.slf4j:slf4j-api'
- implementation 'com.fasterxml.jackson.core:jackson-databind'
-
testImplementation project(':solr:test-framework')
testImplementation 'org.apache.lucene:lucene-test-framework'
testImplementation 'junit:junit'
@@ -49,8 +46,14 @@ dependencies {
exclude group: "io.netty", module: "netty-all"
exclude group: "ch.qos.logback", module: "logback-classic"
})
+ // required by mock-oauth2-server
+ testImplementation 'com.fasterxml.jackson.core:jackson-databind'
+ // Not working currently https://github.com/gradle-dependency-analyze/gradle-dependency-analyze/issues/108
+ //permitTestUnusedDeclared 'com.fasterxml.jackson.core:jackson-databind'
+
testImplementation 'com.nimbusds:nimbus-jose-jwt'
testImplementation 'com.squareup.okhttp3:mockwebserver'
testImplementation 'com.squareup.okhttp3:okhttp'
- testImplementation 'io.netty:netty-codec-http'
+ testRuntimeOnly 'io.netty:netty-codec-http'
+ testImplementation 'org.apache.commons:commons-lang3'
}
diff --git a/solr/modules/langid/build.gradle b/solr/modules/langid/build.gradle
index a88a202612a..5991c5667d1 100644
--- a/solr/modules/langid/build.gradle
+++ b/solr/modules/langid/build.gradle
@@ -26,9 +26,9 @@ dependencies {
implementation ('org.apache.tika:tika-core') { transitive = false }
implementation 'commons-io:commons-io'
implementation 'com.cybozu.labs:langdetect'
- implementation 'net.arnx:jsonic'
implementation 'org.apache.opennlp:opennlp-tools'
-implementation 'org.slf4j:slf4j-api'
+ implementation 'org.slf4j:slf4j-api'
+
testImplementation project(':solr:test-framework')
testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
testImplementation 'junit:junit'
diff --git a/solr/modules/ltr/build.gradle b/solr/modules/ltr/build.gradle
index 69fa36fe9ac..96cce2b5d36 100644
--- a/solr/modules/ltr/build.gradle
+++ b/solr/modules/ltr/build.gradle
@@ -23,8 +23,6 @@ dependencies {
implementation project(':solr:core')
implementation project(':solr:solrj')
- implementation 'commons-io:commons-io'
- implementation 'org.apache.lucene:lucene-analysis-common'
implementation 'org.apache.lucene:lucene-core'
implementation 'org.slf4j:slf4j-api'
@@ -38,4 +36,6 @@ dependencies {
testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
testImplementation 'junit:junit'
testImplementation 'org.hamcrest:hamcrest'
+
+ testImplementation 'commons-io:commons-io'
}
diff --git a/solr/modules/s3-repository/build.gradle b/solr/modules/s3-repository/build.gradle
index 66ebf6edf9f..7c78b4d5c55 100644
--- a/solr/modules/s3-repository/build.gradle
+++ b/solr/modules/s3-repository/build.gradle
@@ -20,70 +20,70 @@ apply plugin: 'java-library'
description = 'S3 Repository'
dependencies {
- api project(':solr:core')
- implementation project(':solr:solrj')
+ api project(':solr:core')
+ implementation project(':solr:solrj')
- implementation 'org.apache.lucene:lucene-core'
+ implementation 'org.apache.lucene:lucene-core'
- implementation platform(group: 'software.amazon.awssdk', name: 'bom')
- implementation (group: 'software.amazon.awssdk', name: 'auth')
- implementation (group: 'software.amazon.awssdk', name: 'apache-client')
- implementation (group: 'software.amazon.awssdk', name: 'aws-core')
- implementation (group: 'software.amazon.awssdk', name: 'regions')
- implementation (group: 'software.amazon.awssdk', name: 's3') {
- exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
- }
- implementation (group: 'software.amazon.awssdk', name: 'sdk-core')
- implementation (group: 'software.amazon.awssdk', name: 'protocol-core')
+ implementation platform(group: 'software.amazon.awssdk', name: 'bom')
+ implementation(group: 'software.amazon.awssdk', name: 'auth')
+ implementation(group: 'software.amazon.awssdk', name: 'apache-client')
+ implementation(group: 'software.amazon.awssdk', name: 'aws-core')
+ implementation(group: 'software.amazon.awssdk', name: 'regions')
+ implementation(group: 'software.amazon.awssdk', name: 's3') {
+ exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
+ }
+ implementation(group: 'software.amazon.awssdk', name: 'sdk-core')
- implementation 'com.google.guava:guava'
- implementation 'commons-io:commons-io'
- implementation 'org.slf4j:slf4j-api'
+ implementation 'com.google.guava:guava'
+ implementation 'org.slf4j:slf4j-api'
- runtimeOnly (group: 'com.fasterxml.woodstox', name: 'woodstox-core')
- runtimeOnly (group: 'org.codehaus.woodstox', name: 'stax2-api')
+ runtimeOnly(group: 'com.fasterxml.woodstox', name: 'woodstox-core')
+ runtimeOnly(group: 'org.codehaus.woodstox', name: 'stax2-api')
- testImplementation ('com.adobe.testing:s3mock-junit4') {
- // Don't pull in separate versions of these libs, just use what Solr already has
- exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
- exclude group: 'ch.qos.logback', module: 'logback-classic'
- exclude group: 'org.eclipse.jetty', module: '*'
- exclude group: 'io.netty', module: '*'
- exclude group: 'commons-io', module: 'commons-io'
- exclude group: 'commons-codec', module: 'commons-codec'
- exclude group: 'org.apache.commons', module: 'commons-lang3'
- exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
- exclude group: 'org.codehaus.woodstox', module: 'stax2-api'
- }
- testImplementation ('com.adobe.testing:s3mock-testsupport-common') {
- // Don't pull in separate versions of these libs, just use what Solr already has
- exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
- exclude group: 'ch.qos.logback', module: 'logback-classic'
- exclude group: 'org.eclipse.jetty', module: '*'
- exclude group: 'io.netty', module: '*'
- exclude group: 'commons-io', module: 'commons-io'
- exclude group: 'commons-codec', module: 'commons-codec'
- exclude group: 'org.apache.commons', module: 'commons-lang3'
- exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
- exclude group: 'org.codehaus.woodstox', module: 'stax2-api'
- }
+ testImplementation project(':solr:test-framework')
+ testImplementation 'org.apache.lucene:lucene-test-framework'
+ testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
+ testImplementation 'junit:junit'
- testImplementation project(':solr:test-framework')
- testImplementation 'org.apache.lucene:lucene-test-framework'
- testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
- testImplementation 'junit:junit'
- testImplementation 'org.apache.commons:commons-lang3'
+ testImplementation('com.adobe.testing:s3mock-junit4') {
+ // Don't pull in separate versions of these libs, just use what Solr already has
+ exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
+ exclude group: 'ch.qos.logback', module: 'logback-classic'
+ exclude group: 'org.eclipse.jetty', module: '*'
+ exclude group: 'io.netty', module: '*'
+ exclude group: 'commons-io', module: 'commons-io'
+ exclude group: 'commons-codec', module: 'commons-codec'
+ exclude group: 'org.apache.commons', module: 'commons-lang3'
+ exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
+ exclude group: 'org.codehaus.woodstox', module: 'stax2-api'
+ }
+ testImplementation('com.adobe.testing:s3mock-testsupport-common') {
+ // Don't pull in separate versions of these libs, just use what Solr already has
+ exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
+ exclude group: 'ch.qos.logback', module: 'logback-classic'
+ exclude group: 'org.eclipse.jetty', module: '*'
+ exclude group: 'io.netty', module: '*'
+ exclude group: 'commons-io', module: 'commons-io'
+ exclude group: 'commons-codec', module: 'commons-codec'
+ exclude group: 'org.apache.commons', module: 'commons-lang3'
+ exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
+ exclude group: 'org.codehaus.woodstox', module: 'stax2-api'
+ }
+
+ testImplementation 'commons-io:commons-io'
+ testImplementation 'org.apache.commons:commons-lang3'
}
test {
- // S3Mock uses Spring Boot under the hood, which tries to do too much auto configuration that we don't want
- environment "spring.autoconfigure.exclude", "org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration"
- environment "spring.jmx.enabled", "false"
+ // S3Mock uses Spring Boot under the hood, which tries to do too much auto configuration that we don't want
+ environment "spring.autoconfigure.exclude", "org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration"
+ environment "spring.jmx.enabled", "false"
- // Without this, randomizedtesting will think our tests leak threads (b/c S3Mock's Jetty hasn't bothered to clean up yet)
- environment "server.jetty.threads.idle-timeout", "1s"
+ // Without this, randomizedtesting will think our tests leak threads (b/c S3Mock's Jetty hasn't bothered to clean up yet)
+ environment "server.jetty.threads.idle-timeout", "1s"
- // Reduce logging noise during the tests
- environment "aws.accessKeyId", "foo"
- environment "aws.secretAccessKey", "bar"
+ // Reduce logging noise during the tests
+ environment "aws.accessKeyId", "foo"
+ environment "aws.secretAccessKey", "bar"
}
diff --git a/solr/prometheus-exporter/build.gradle b/solr/prometheus-exporter/build.gradle
index 9402fce88b6..739a1ac12d5 100644
--- a/solr/prometheus-exporter/build.gradle
+++ b/solr/prometheus-exporter/build.gradle
@@ -25,7 +25,6 @@ dependencies {
implementation('org.apache.zookeeper:zookeeper') { transitive = false } // ideally remove ZK dep
implementation ('io.prometheus:simpleclient')
- implementation ('io.prometheus:simpleclient_common')
implementation ('io.prometheus:simpleclient_httpserver')
implementation ('net.thisptr:jackson-jq', {
exclude group: "org.jruby.joni", module: "joni"
@@ -34,7 +33,6 @@ dependencies {
implementation ('com.fasterxml.jackson.core:jackson-databind')
implementation ('net.sourceforge.argparse4j:argparse4j')
implementation ('com.github.ben-manes.caffeine:caffeine') { transitive = false }
- implementation 'commons-io:commons-io'
implementation 'org.slf4j:slf4j-api'
runtimeOnly 'org.apache.logging.log4j:log4j-api'
@@ -47,6 +45,8 @@ dependencies {
testImplementation 'org.apache.lucene:lucene-test-framework'
testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner'
testImplementation 'junit:junit'
+
+ testImplementation 'commons-io:commons-io'
testImplementation 'org.apache.httpcomponents:httpclient'
testImplementation 'org.apache.httpcomponents:httpcore'
}
diff --git a/solr/server/build.gradle b/solr/server/build.gradle
index d6df58da7b0..c943f72dc21 100644
--- a/solr/server/build.gradle
+++ b/solr/server/build.gradle
@@ -30,39 +30,62 @@ configurations {
}
dependencies {
- api('org.eclipse.jetty:jetty-alpn-java-server', {
- exclude group: "org.eclipse.jetty.alpn", module: "alpn-api"
- })
-
+ permitUnusedDeclared 'io.dropwizard.metrics:metrics-core'
api('io.dropwizard.metrics:metrics-core', {
exclude group: "com.rabbitmq", module: "amqp-client"
})
+ permitUnusedDeclared 'io.dropwizard.metrics:metrics-graphite'
api('io.dropwizard.metrics:metrics-graphite', {
exclude group: "com.rabbitmq", module: "amqp-client"
})
+ permitUnusedDeclared 'io.dropwizard.metrics:metrics-jetty9'
api 'io.dropwizard.metrics:metrics-jetty9'
+ permitUnusedDeclared 'io.dropwizard.metrics:metrics-jvm'
api 'io.dropwizard.metrics:metrics-jvm'
+ permitUnusedDeclared 'io.dropwizard.metrics:metrics-jmx'
api 'io.dropwizard.metrics:metrics-jmx'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-continuation'
api 'org.eclipse.jetty:jetty-continuation'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-deploy'
api 'org.eclipse.jetty:jetty-deploy'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-http'
api 'org.eclipse.jetty:jetty-http'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-io'
api 'org.eclipse.jetty:jetty-io'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-jmx'
api 'org.eclipse.jetty:jetty-jmx'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-rewrite'
api 'org.eclipse.jetty:jetty-rewrite'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-security'
api 'org.eclipse.jetty:jetty-security'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-server'
api 'org.eclipse.jetty:jetty-server'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-servlet'
api 'org.eclipse.jetty:jetty-servlet'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-servlets'
api 'org.eclipse.jetty:jetty-servlets'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-util'
api 'org.eclipse.jetty:jetty-util'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-webapp'
api 'org.eclipse.jetty:jetty-webapp'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-xml'
api 'org.eclipse.jetty:jetty-xml'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-alpn-server'
api 'org.eclipse.jetty:jetty-alpn-server'
+ permitUnusedDeclared 'org.eclipse.jetty:jetty-alpn-java-server'
+ api('org.eclipse.jetty:jetty-alpn-java-server', {
+ exclude group: "org.eclipse.jetty.alpn", module: "alpn-api"
+ })
+ permitUnusedDeclared 'org.eclipse.jetty.http2:http2-server'
api 'org.eclipse.jetty.http2:http2-server'
+ permitUnusedDeclared 'org.eclipse.jetty.http2:http2-common'
api 'org.eclipse.jetty.http2:http2-common'
+ permitUnusedDeclared 'org.eclipse.jetty.http2:http2-hpack'
api 'org.eclipse.jetty.http2:http2-hpack'
+ permitUnusedDeclared 'javax.servlet:javax.servlet-api'
api 'javax.servlet:javax.servlet-api'
libExt 'com.lmax:disruptor'
diff --git a/solr/solrj/build.gradle b/solr/solrj/build.gradle
index c80f971ba36..71f102d12f4 100644
--- a/solr/solrj/build.gradle
+++ b/solr/solrj/build.gradle
@@ -25,6 +25,7 @@ dependencies {
// annotation usage like in Zookeeper during compilation time.
// It is not included in the release so exclude from checks.
compileOnly 'com.github.spotbugs:spotbugs-annotations'
+ permitUnusedDeclared 'com.github.spotbugs:spotbugs-annotations'
// Exclude these from jar validation and license checks.
configurations.jarValidation {
exclude group: "com.github.spotbugs", module: "spotbugs-annotations"
@@ -83,7 +84,7 @@ dependencies {
testImplementation('org.mockito:mockito-core', {
exclude group: "net.bytebuddy", module: "byte-buddy-agent"
})
- testImplementation("org.apache.logging.log4j:log4j-slf4j-impl", {
+ 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
diff --git a/solr/test-framework/build.gradle b/solr/test-framework/build.gradle
index 429ca937923..5bcb8757af6 100644
--- a/solr/test-framework/build.gradle
+++ b/solr/test-framework/build.gradle
@@ -24,6 +24,7 @@ dependencies {
// annotation usage like in Zookeeper during compilation time.
// It is not included in the release so exclude from checks.
compileOnly 'com.github.spotbugs:spotbugs-annotations'
+ permitUnusedDeclared 'com.github.spotbugs:spotbugs-annotations'
// Exclude these from jar validation and license checks.
configurations.jarValidation {
exclude group: "com.github.spotbugs", module: "spotbugs-annotations"
@@ -33,7 +34,6 @@ dependencies {
api project(':solr:solrj')
api 'org.apache.lucene:lucene-test-framework'
- api 'org.apache.lucene:lucene-analysis-common'
implementation 'org.apache.lucene:lucene-core'
implementation 'org.apache.lucene:lucene-queries'
@@ -56,7 +56,7 @@ dependencies {
implementation 'io.dropwizard.metrics:metrics-core'
implementation 'io.dropwizard.metrics:metrics-jetty9'
implementation 'commons-cli:commons-cli'
- implementation 'org.bitbucket.b_c:jose4j'
+ permitUnusedDeclared 'commons-cli:commons-cli'
implementation 'org.apache.httpcomponents:httpclient'
implementation 'org.apache.httpcomponents:httpcore'
diff --git a/solr/webapp/build.gradle b/solr/webapp/build.gradle
index a687fdb38ce..f412800c8d1 100644
--- a/solr/webapp/build.gradle
+++ b/solr/webapp/build.gradle
@@ -27,6 +27,7 @@ configurations {
}
dependencies {
+ permitUnusedDeclared project(":solr:core")
implementation(project(":solr:core"), {
exclude module: "server"
@@ -53,4 +54,4 @@ war {
// Expose 'war' archive as an artifact so that it can be packaged in the distribution.
artifacts {
war tasks.war
-}
\ No newline at end of file
+}
diff --git a/versions.lock b/versions.lock
index 361e48830aa..60f3273fd16 100644
--- a/versions.lock
+++ b/versions.lock
@@ -82,7 +82,7 @@ io.opentracing:opentracing-api:0.33.0 (5 constraints: 4d3cfe52)
io.opentracing:opentracing-noop:0.33.0 (3 constraints: 7c2142bd)
io.opentracing:opentracing-util:0.33.0 (3 constraints: f71f843b)
io.prometheus:simpleclient:0.2.0 (3 constraints: fe242db8)
-io.prometheus:simpleclient_common:0.2.0 (2 constraints: e8159ecb)
+io.prometheus:simpleclient_common:0.2.0 (1 constraints: e51014af)
io.prometheus:simpleclient_httpserver:0.2.0 (1 constraints: 0405f135)
io.sgr:s2-geometry-library-java:1.0.0 (2 constraints: b215dedf)
javax.servlet:javax.servlet-api:3.1.0 (3 constraints: 75209943)
@@ -242,7 +242,7 @@ software.amazon.awssdk:http-client-spi:2.17.63 (10 constraints: 63992164)
software.amazon.awssdk:json-utils:2.17.63 (3 constraints: 4227d652)
software.amazon.awssdk:metrics-spi:2.17.63 (6 constraints: c555c7a0)
software.amazon.awssdk:profiles:2.17.63 (6 constraints: 7b4fb0aa)
-software.amazon.awssdk:protocol-core:2.17.63 (5 constraints: 8641079a)
+software.amazon.awssdk:protocol-core:2.17.63 (4 constraints: 123cc09e)
software.amazon.awssdk:regions:2.17.63 (5 constraints: a4388089)
software.amazon.awssdk:s3:2.17.63 (3 constraints: bb244128)
software.amazon.awssdk:sdk-core:2.17.63 (9 constraints: 107bb50f)