From 706da4f7c2b93648f91981cbd7cacbf81cc9c362 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Fri, 1 Jun 2012 09:58:02 +0200 Subject: [PATCH] Fix missing spring-instrument jar manifest entry The spring-intstrument jar should have a 'Premain-Class:' manifest entry in order to enable use as a Java agent. This entry was present in versions 3.1.1 and earlier, but due to build infrastructure changes starting in 3.2.x this entry was missed. It is now back in place as expected. Issue: SPR-9458 --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 507c5f3add..85c932289f 100644 --- a/build.gradle +++ b/build.gradle @@ -183,6 +183,10 @@ project('spring-instrument') { dependencies { compile project(":spring-core") } + jar { + manifest.attributes['Premain-Class'] = + 'org.springframework.instrument.InstrumentationSavingAgent' + } } project('spring-instrument-tomcat') {