[](https://travis-ci.org/OfficeDev/ews-java-api) [](https://gitter.im/OfficeDev/ews-java-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# EWS JAVA API
Please see the [Getting Started Guide](https://github.com/OfficeDev/ews-java-api/wiki/Getting-Started-Guide) on our wiki for an introduction to this library.
## Using the library
Prebuilt JARs are available in the Maven Central repository, which are easy to use with your project. Note that currently, no stable version is available yet, only snapshots in the snapshots repository.
### Maven
If you want to use a snapshot build, add the Maven Central snapshots repository to your project's `pom.xml`. If you want to use a stable build (not available yet), you should skip this step.
```xml
sonatype-snapshots
Sonatype OSS Snapshots
https://oss.sonatype.org/content/repositories/snapshots/
false
true
```
And finally, add the dependency to your project's `pom.xml`.
```xml
com.microsoft.ews-java-api
ews-java-api
2.0-SNAPSHOT
```
### Gradle
If you want to use a snapshot build, add the Maven Central snapshots repository to your project's `build.gradle`. If you want to use a stable build (not available yet), you should skip this step.
```groovy
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
```
And finally, add the dependency to your project's `build.gradle`.
```groovy
dependencies {
compile 'com.microsoft.ews-java-api:ews-java-api:2.0-SNAPSHOT'
}
```
### Building from source
To build a JAR from the source yourself, please see [this page](https://github.com/OfficeDev/ews-java-api/wiki/Building-EWS-JAVA-API).