Skip to content

Commit

Permalink
SOLR-15955: Fix placing of slf4j-api jar in the lib/ext dir (apache#1178
Browse files Browse the repository at this point in the history
)
  • Loading branch information
HoustonPutman authored Nov 14, 2022
1 parent 7f37115 commit bd11f3a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
16 changes: 4 additions & 12 deletions solr/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,14 @@ dependencies {
runtimeOnly('org.eclipse.jetty:jetty-alpn-java-server', {
exclude group: "org.eclipse.jetty.alpn", module: "alpn-api"
})
jettyClientImplementation('org.eclipse.jetty:jetty-http', {
exclude group: "org.slf4j", module: "slf4j-api"
})
jettyClientImplementation('org.eclipse.jetty:jetty-io', {
exclude group: "org.slf4j", module: "slf4j-api"
})
jettyClientImplementation('org.eclipse.jetty:jetty-http')
jettyClientImplementation('org.eclipse.jetty:jetty-io')
implementation 'org.eclipse.jetty:jetty-rewrite'
implementation 'org.eclipse.jetty:jetty-server'
implementation 'org.eclipse.jetty:jetty-servlet'
jettyClientImplementation('org.eclipse.jetty:jetty-util', {
exclude group: "org.slf4j", module: "slf4j-api"
})
jettyClientImplementation('org.eclipse.jetty:jetty-util')

jettyClientImplementation('org.eclipse.jetty.http2:http2-common', {
exclude group: "org.slf4j", module: "slf4j-api"
})
jettyClientImplementation('org.eclipse.jetty.http2:http2-common')
implementation 'org.eclipse.jetty.http2:http2-server'

implementation('org.glassfish.jersey.containers:jersey-container-jetty-http', {
Expand Down
10 changes: 7 additions & 3 deletions solr/server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ dependencies {
libExt('io.dropwizard.metrics:metrics-graphite', {
exclude group: "com.rabbitmq", module: "amqp-client"
})
libExt 'io.dropwizard.metrics:metrics-jetty10'
libExt('io.dropwizard.metrics:metrics-jetty10', {
exclude group: "org.eclipse.jetty", module: "*"
exclude group: "org.eclipse.jetty.http2", module: "*"
exclude group: "org.eclipse.jetty.toolchain", module: "*"
})
libExt 'io.dropwizard.metrics:metrics-jvm'
libExt 'io.dropwizard.metrics:metrics-jmx'

Expand Down Expand Up @@ -109,11 +113,11 @@ task assemblePackaging(type: Sync) {
include "README.md"
})

from(configurations.libExt - configurations.serverLib, {
from(configurations.libExt, {
into "lib/ext"
})

from(configurations.serverLib, {
from(configurations.serverLib - configurations.libExt, {
into "lib/"
})

Expand Down
12 changes: 7 additions & 5 deletions solr/webapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ description = 'Solr webapp'

configurations {
war {}
serverLib {}
solrJettyClientLib {}
solrCore {}
serverLib
libExt
solrJettyClientLib
solrCore
}

dependencies {
permitUnusedDeclared project(":solr:core")
serverLib project(path: ":solr:server", configuration: "libExt")
libExt project(path: ":solr:server", configuration: "libExt")
serverLib project(path: ":solr:server", configuration: "serverLib")
solrCore project(":solr:core")
solrJettyClientLib project(path: ":solr:core", configuration: "jettyClientImplementation")
implementation(configurations.solrCore - configurations.serverLib + configurations.solrJettyClientLib)
// Make sure we keep the duplicate solrJettyClientLibs, but we want to remove all of the logging and metrics jars already in libExt
implementation(configurations.solrCore - configurations.serverLib + configurations.solrJettyClientLib - configurations.libExt)
}

war {
Expand Down

0 comments on commit bd11f3a

Please sign in to comment.