Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix muzzle directive
  • Loading branch information
manuel-alvarez-alvarez committed Mar 28, 2025
commit 83a89c4aba7543cace4580a450125f09bc8a5f41
14 changes: 14 additions & 0 deletions dd-java-agent/instrumentation/spring-webmvc-3.1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ muzzle {
extraDependency "javax.servlet:javax.servlet-api:3.0.1"
extraDependency "org.springframework:spring-webmvc:3.1.0.RELEASE"
}

pass {
name = 'spring-mvc-pre-5.3'
group = 'org.springframework'
module = 'spring-webmvc'
versions = "[3.1.0.RELEASE,5.3)"
skipVersions += [
'1.2.1',
'1.2.2',
'1.2.3',
'1.2.4'] // broken releases... missing dependencies
skipVersions += '3.2.1.RELEASE' // missing a required class. (bad release?)
extraDependency "javax.servlet:javax.servlet-api:3.0.1"
}
}

apply from: "$rootDir/gradle/java.gradle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public ElementMatcher.Junction<ClassLoader> classLoaderMatcher() {
"org.springframework.web.servlet.mvc.condition.PathPatternsRequestCondition"));
}

@Override
public String muzzleDirective() {
return "spring-mvc-pre-5.3";
}

@Override
public String[] helperClassNames() {
return new String[] {packageName + ".RequestMappingInfoIterator"};
Expand Down