-
Notifications
You must be signed in to change notification settings - Fork 65
/
build.gradle.kts
38 lines (32 loc) · 1.19 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
import java.util.Properties
plugins {
id("org.springframework.boot") version "3.3.0"
id("io.spring.dependency-management") version "1.1.5"
java
}
repositories {
mavenCentral()
}
val properties = Properties()
properties.load(File(rootDir.parent, "gradle.properties").inputStream())
for ((key, value) in properties) {
project.ext[key.toString()] = value
}
val annotationsVersion: String by project
dependencies {
implementation("com.apollographql.federation", "federation-graphql-java-support")
implementation("org.jetbrains", "annotations", annotationsVersion)
implementation("org.springframework.boot", "spring-boot-starter-actuator")
implementation("org.springframework.boot", "spring-boot-starter-graphql")
implementation("org.springframework.boot", "spring-boot-starter-web")
testImplementation("org.springframework.boot", "spring-boot-starter-test")
testImplementation("org.springframework.boot", "spring-boot-starter-webflux")
testImplementation("org.springframework.graphql", "spring-graphql-test")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<Test> {
useJUnitPlatform()
}