Spring Data repositories that support Querydsl are now supported as DataFetchers returning single objects and iterables including projection support. See gh-59
38 lines
1.2 KiB
Groovy
38 lines
1.2 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.5.0'
|
|
id 'java'
|
|
}
|
|
group = 'com.example'
|
|
version = '0.0.1-SNAPSHOT'
|
|
description = "GraphQL over HTTP with Spring MVC Sample"
|
|
sourceCompatibility = '1.8'
|
|
|
|
dependencies {
|
|
implementation project(':graphql-spring-boot-starter')
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
runtimeOnly 'com.h2database:h2'
|
|
testImplementation project(':spring-graphql-test')
|
|
testImplementation 'org.springframework:spring-webflux'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
implementation(
|
|
"com.querydsl:querydsl-core:4.4.0",
|
|
"com.querydsl:querydsl-jpa:4.4.0"
|
|
)
|
|
annotationProcessor "com.querydsl:querydsl-apt:4.4.0:jpa",
|
|
"org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final",
|
|
"javax.annotation:javax.annotation-api:1.3.2"
|
|
}
|
|
|
|
compileJava {
|
|
options.annotationProcessorPath = configurations.annotationProcessor
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|