This commit applies the Compiler Conventions Gradle plugin to the project modules and fix the issues raised by the compiler linter. This commit also moves version management to the main build file for a few dependencies, aligning the versions in the process.
36 lines
1.2 KiB
Groovy
36 lines
1.2 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version "${bootVersion}"
|
|
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'
|
|
implementation 'com.querydsl:querydsl-core'
|
|
implementation 'com.querydsl:querydsl-jpa'
|
|
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'
|
|
|
|
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'
|
|
}
|
|
|
|
compileJava {
|
|
options.annotationProcessorPath = configurations.annotationProcessor
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|