From 91b5603a95fbe8d5beada3f34200d0f7276b696f Mon Sep 17 00:00:00 2001 From: Luke Korth Date: Tue, 19 Oct 2021 20:24:16 +0000 Subject: [PATCH 1/2] Move getting started higher in README --- README.md | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index c5687af..ca19962 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: 2.2.3' +} +``` + +### 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 From e32e3202d0bd23cd10d3fec9964a082a4d596c80 Mon Sep 17 00:00:00 2001 From: Luke Korth Date: Tue, 19 Oct 2021 20:25:08 +0000 Subject: [PATCH 2/2] Update version in README to latest --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca19962..e48de1d 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ repositories { } dependencies { - compile 'com.graphql-java:java-dataloader: 2.2.3' + compile 'com.graphql-java:java-dataloader: 3.1.0' } ```