From 66d02a6b9533f270660a6f3c5fad10ef622c74e7 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 24 Dec 2015 11:13:03 -0500 Subject: [PATCH] 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` . --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2be21b80b7..a3b6a18e8c 100644 --- a/build.gradle +++ b/build.gradle @@ -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" } }