Getting started
This project requires at least the following version:
- Java 17
- Spring Boot 3.x.x (
spring-boot-starter-web
)
Quick start
To add graphql-spring-boot
to your project and get started quickly, do the following.
Build with Gradle
Make sure mavenCentral
is amongst your repositories:
repositories {
mavenCentral()
}
Add the respective starter dependencies you want to use:
dependencies {
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:15.0.0'
// testing facilities
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:15.0.0'
}
Build with Maven
Add the respective starter dependencies you want to use:
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter</artifactId>
<version>15.0.0</version>
</dependency>
<!-- testing facilities -->
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter-test</artifactId>
<version>15.0.0</version>
<scope>test</scope>
</dependency>
Using the latest development build
Snapshot versions of the current master
branch are available on JFrog. Check the next snapshot version on
Github
Build with Gradle
Add the Snapshot repository:
repositories {
mavenCentral()
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
}
Build with Maven
Add the Snapshot repository:
<repositories>
<repository>
<id>oss-snapshot-local</id>
<name>jfrog</name>
<url>https://oss.jfrog.org/artifactory/oss-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>