Add AMF to your project
To run AMF in your application, you'll need add AMF to your dependencies and then configure AMF to use it in your code.
Download AMF artifacts
You can download the necessary AMF artifacts from:
Add AMF to your dependencies
The following example shows how to add AMF to your project using Gradle, Maven, or NPM.
- Gradle
- Maven
- NPM
// add mulesoft repository
repositories {
maven {
url 'https://repository-master.mulesoft.org/nexus/content/repositories/releases'
}
}
dependencies {
implementation 'com.github.amlorg:amf-api-contract_2.12:5.y.z'
}
<dependency>
<groupId>com.github.amlorg</groupId>
<artifactId>amf-api-contract_2.12</artifactId>
<version>5.y.z</version>
</dependency>
NPM or Yarn:
$ npm install --save amf-client-js #using npm
$ yarn add --save amf-client-js #using yarn
NOTE: you may use the -SNAPSHOT
versions of the artifacts at your own risk since those snapshot versions may contain breaking changes.