From daf770f5eee606fd5bdeca4591a7c2f6f305246a Mon Sep 17 00:00:00 2001 From: ScarletRedMan Date: Mon, 6 May 2024 16:00:42 +0700 Subject: [PATCH] added graphql dependency --- server/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/build.gradle b/server/build.gradle index af76d89..f2e5f49 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -1,6 +1,7 @@ plugins { id 'org.springframework.boot' version '3.1.5' id 'io.spring.dependency-management' version '1.1.3' + id 'com.netflix.dgs.codegen' version '6.0.3' } configurations { @@ -11,13 +12,13 @@ configurations { dependencies { implementation project(":client-api") - implementation 'org.jetbrains:annotations:24.1.0' developmentOnly("org.springframework.boot:spring-boot-devtools") implementation 'org.springframework.boot:spring-boot-starter-aop' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-actuator' 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' @@ -40,3 +41,9 @@ tasks.named('test') { tasks.named("bootJar") { archiveFileName.set("server.jar") } + +generateJava { + schemaPaths = ["${projectDir}/src/main/resources/graphql-client"] + packageName = 'ru.dragonestia.picker.codegen' + generateClient = true +}