added graphql dependency

This commit is contained in:
Andrey Terentev 2024-05-06 16:00:42 +07:00 committed by Andrey Terentev
parent 313bdbf2fa
commit daf770f5ee

View File

@ -1,6 +1,7 @@
plugins { plugins {
id 'org.springframework.boot' version '3.1.5' id 'org.springframework.boot' version '3.1.5'
id 'io.spring.dependency-management' version '1.1.3' id 'io.spring.dependency-management' version '1.1.3'
id 'com.netflix.dgs.codegen' version '6.0.3'
} }
configurations { configurations {
@ -11,13 +12,13 @@ configurations {
dependencies { dependencies {
implementation project(":client-api") implementation project(":client-api")
implementation 'org.jetbrains:annotations:24.1.0'
developmentOnly("org.springframework.boot:spring-boot-devtools") developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation 'org.springframework.boot:spring-boot-starter-aop' implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'org.springframework.boot:spring-boot-starter-graphql'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus' runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
@ -40,3 +41,9 @@ tasks.named('test') {
tasks.named("bootJar") { tasks.named("bootJar") {
archiveFileName.set("server.jar") archiveFileName.set("server.jar")
} }
generateJava {
schemaPaths = ["${projectDir}/src/main/resources/graphql-client"]
packageName = 'ru.dragonestia.picker.codegen'
generateClient = true
}