Skip to content

Commit

Permalink
Preventing unreacheable transitive dependencies from being loaded in …
Browse files Browse the repository at this point in the history
…solr-jmx-7.0.0
  • Loading branch information
meiao committed Jun 27, 2023
1 parent 7694e53 commit e9f8ce7
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions instrumentation/solr-jmx-7.0.0/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,13 @@ dependencies {
implementation(project(":newrelic-weaver-api"))

implementation("org.apache.lucene:lucene-core:7.0.0")
implementation("org.apache.solr:solr-core:7.0.0")
// some dependencies of solr-core:7.0.0 are no longer available, so should be provided on lib
implementation(fileTree(include: ["*.jar"], dir: "lib"))
implementation("org.apache.solr:solr-core:7.0.0") {
exclude(group: "org.restlet.jee", module: "org.restlet")
exclude(group: "org.restlet.jee", module: "org.restlet.ext.servlet")
}
}

def shouldBuild = fileTree(include: ["*.jar"], dir: "lib").size() > 0

compileJava {
enabled(shouldBuild)
}

compileTestJava {
enabled(shouldBuild)
}

tasks.getByName("writeCachedWeaveAttributes").enabled(shouldBuild)

jar {
enabled(shouldBuild)
manifest { attributes 'Implementation-Title': 'com.newrelic.instrumentation.solr-jmx-7.0.0' }
}

Expand Down

0 comments on commit e9f8ce7

Please sign in to comment.