Deploy the iSDK with Agent API

To leverage Agent API functionality with the iSDK, you must package it with your custom interceptor jar. To accomplish this in Grade:

  1. Create a configuration for iSDK:
    configurations {
      isdk
    }
  2. Add the Agent-API dependency to this configuration:
    dependencies {
        compile group: 'com.appdynamics.agent', name: 'agent-api', version: '20.6.0.30246'
    	isdk group: 'com.appdynamics.agent', name: 'agent-api', version: '20.6.0.30246'
    	…
    }
  3. Inside your task for generating the interceptors jar, include the AppdynamicsAgent class inside the jar:
    jar {
      configurations.isdk.collect {
        it.isDirectory() ? from(it) : from(zipTree(it)) {
          include 'com/appdynamics/agent/api/AppdynamicsAgent.class'
        }
      }
      includeEmptyDirs = false
    }
Note: To accomplish this in Maven, you must write an Ant Task to include the AppdynamicsAgent class with your jar.