-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #928 from newrelic/spring-jms-jakarta
Update spring-jms dependencies and verifier
- Loading branch information
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
|
||
dependencies { | ||
implementation(project(":agent-bridge")) | ||
implementation("javax.jms:jms-api:1.1-rev-1") | ||
implementation("org.springframework:spring-jms:2.0") | ||
implementation("jakarta.jms:jakarta.jms-api:2.0.3") | ||
implementation("org.springframework:spring-jms:5.3.21") | ||
} | ||
|
||
jar { | ||
manifest { attributes 'Implementation-Title': 'com.newrelic.instrumentation.spring-jms-2' } | ||
} | ||
|
||
verifyInstrumentation { | ||
// we'll verify against spring-jms 2.0 anyway, but we can't verify against the classpath (yet) because | ||
// classpath verification adds jms-1.1 project to the classpath and the weaver doesn't allow redefining | ||
// existing classes - it only allows weaving them - so these utility classes throw some API violations: | ||
// WeaveViolation{type=ILLEGAL_CLASS_NAME, clazz=com/nr/agent/instrumentation/jms11/JmsMetricUtil} | ||
// WeaveViolation{type=ILLEGAL_CLASS_NAME, clazz=com/nr/agent/instrumentation/jms11/InboundWrapper} | ||
// ...I think this is desired, but we may want to revisit in the future. for now set verifyClasspath=false | ||
verifyClasspath = false | ||
exclude 'org.springframework:spring-jms:3.2.0.BUILD' | ||
// This is a bad artifact on artifactory | ||
excludeRegex 'org.springframework:spring-jms:5.0.0.(RC)[0-9]*$' | ||
passesOnly 'org.springframework:spring-jms:[0,)' | ||
exclude 'org.springframework:spring-jms:3.2.0.BUILD' | ||
// This is a bad artifact on artifactory | ||
excludeRegex 'org.springframework:spring-jms:5.0.0.(RC)[0-9]*$' | ||
} | ||
|
||
site { | ||
title 'Spring JMS' | ||
type 'Messaging' | ||
} | ||
} |