-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.gradle.kts
49 lines (43 loc) · 2.24 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import com.netflix.graphql.dgs.codegen.gradle.GenerateJavaTask
plugins {
id("spring-conventions")
// Compile error is OK, it is an ide bug
// see: https://github.com/gradle/gradle/issues/18107
// tracked here: https://youtrack.jetbrains.com/issue/KTIJ-19369
alias(libs.plugins.dgs.codegen)
}
description = "gql-gateway"
dependencies {
implementation(project(":security"))
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.security:spring-security-oauth2-client")
implementation("org.springframework.security:spring-security-oauth2-resource-server")
implementation("org.springframework.security:spring-security-oauth2-jose")
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client")
implementation("org.springframework.cloud:spring-cloud-starter-config")
implementation("org.springframework.cloud:spring-cloud-starter-bus-kafka")
implementation("org.springframework.cloud:spring-cloud-starter-sleuth")
implementation("org.springframework.cloud:spring-cloud-sleuth-zipkin")
implementation("org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j")
implementation("org.springframework.cloud:spring-cloud-starter-bootstrap")
implementation("com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter")
implementation("com.netflix.graphql.dgs:graphql-dgs-extended-scalars")
implementation("com.netflix.graphql.dgs:graphql-dgs-extended-validation")
implementation("com.netflix.graphql.dgs.codegen:graphql-dgs-codegen-client-core")
implementation("com.github.ben-manes.caffeine:caffeine")
implementation("org.apache.commons:commons-lang3")
implementation("org.apache.commons:commons-collections4")
implementation("net.logstash.logback:logstash-logback-encoder")
}
tasks.named<GenerateJavaTask>("generateJava") {
schemaPaths = mutableListOf("${project.projectDir}/src/main/resources/schema")
packageName = "com.eshop.gqlgateway"
generateClient = false
language = "JAVA"
}
tasks.compileJava {
dependsOn += "generateJava"
}