diff --git a/README.md b/README.md index c5687af..e48de1d 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ and Nicholas Schrock (@schrockn) from [Facebook](https://www.facebook.com/), the ## Table of contents - [Features](#features) -- [Examples](#examples) -- [Let's get started!](#lets-get-started) +- [Getting started!](#getting-started) - [Installing](#installing) - [Building](#building) +- [Examples](#examples) - [Other information sources](#other-information-sources) - [Contributing](#contributing) - [Acknowledgements](#acknowledgements) @@ -55,6 +55,31 @@ and Nicholas Schrock (@schrockn) from [Facebook](https://www.facebook.com/), the - Can supply your own `ValueCache` implementations - Has very high test coverage +## Getting started! + +### Installing + +Gradle users configure the `java-dataloader` dependency in `build.gradle`: + +``` +repositories { + jcenter() +} + +dependencies { + compile 'com.graphql-java:java-dataloader: 3.1.0' +} +``` + +### Building + +To build from source use the Gradle wrapper: + +``` +./gradlew clean build +``` + + ## Examples A `DataLoader` object requires a `BatchLoader` function that is responsible for loading a promise of values given @@ -513,30 +538,6 @@ since it was last dispatched". The above acts as a kind of minimum batch depth, with a time overload. It won't dispatch if the loader depth is less than or equal to 10 but if 200ms pass it will dispatch. -## Let's get started! - -### Installing - -Gradle users configure the `java-dataloader` dependency in `build.gradle`: - -``` -repositories { - jcenter() -} - -dependencies { - compile 'com.graphql-java:java-dataloader: 2.2.3' -} -``` - -### Building - -To build from source use the Gradle wrapper: - -``` -./gradlew clean build -``` - ## Other information sources