Eric
03/25/2022, 5:34 PMMETA-INF/aop.xml
. Also, when instrumenting Kotlin classes, it throws org.aspectj.weaver.loadtime.Aj - com/company/<NameOfKotlinClass>MethodAccess java.lang.RuntimeException: Illegal type for StackMapType: 12
.Eric
03/25/2022, 5:36 PMMETA-INF
in to BOOT-INF/classes/META-INF
So it seems that I’ll need to package that differently for the agent to find it.Eric
03/25/2022, 5:48 PMBootJar
task specifically leaves aop.xml
in the BOOT-INF
directory:
void moveMetaInfToRoot(CopySpec spec) {
spec.eachFile((file) -> {
String path = file.getRelativeSourcePath().getPathString();
if (path.startsWith("META-INF/") && !path.equals("META-INF/aop.xml") && !path.endsWith(".kotlin_module")) {
moveToRoot(file);
}
});
}