Fix compatibility with IO Platform
https://build.spring.io/browse/INT-MJATS41-492 The SI-4.3 has been upgraded to openJpa-2.4.0 for Class Transformation on Java 8 support. The Spring IO is still on openJpa-2.3.0. Using version in the agent pattern isn't good idea to distinguish the proper jar, because IO does version re-mapping at runtime. Change the pattern to consider version as is, but don't match other openJpa jars (transitive required dependencies) in the classpath, e.g. `openjpa-persistence-jdbc` .
This commit is contained in:
@@ -466,7 +466,7 @@ project('spring-integration-jpa') {
|
||||
|
||||
tasks.withType(Test).matching {it.name ==~ /(springIo.+)|(test)|(testAll)/}.all {
|
||||
jvmArgs classpath.files.findAll {
|
||||
it.name ==~ /(spring-instrument.+)|(openjpa-${openJpaVersion}.+)/}.collect{"-javaagent:$it"
|
||||
it.name ==~ /(spring-instrument.+)|(openjpa-\d+\.\d+\.\d+\.jar)/}.collect{"-javaagent:$it"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user