Install the Dependency
You can access the Agent API jar directly, or download it from Maven Central or from the Splunk AppDynamics portal. The library version changes with each new API release, and is not tightly coupled to the version of the underlying agent.
To use Maven Central, add the dependency to your build files in one of the following:
- Gradle:
dependencies { compile group: 'com.appdynamics.agent', name: 'agent-api', version: '20.6.0.30246' }
- Maven:
<dependency> <groupId>com.appdynamics.agent</groupId> <artifactId>agent-api</artifactId> <version>20.6.0.30246</version> </dependency>