-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
97 lines (78 loc) · 2.63 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
plugins {
id("org.springframework.boot") version "3.2.2"
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.22"
kotlin("plugin.spring") version "1.9.22"
kotlin("plugin.jpa") version "1.9.22"
id("com.apollographql.apollo3") version "3.8.2"
}
group = "io.boardfi"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
// Spring
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
// Serialization
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
// Database
implementation("org.flywaydb:flyway-core")
runtimeOnly("org.postgresql:postgresql")
// Reflection
implementation("org.jetbrains.kotlin:kotlin-reflect")
// GraphQL
implementation("com.apollographql.apollo3:apollo-runtime:3.8.2")
//Web3j
implementation("org.web3j:core:5.0.0")
// OpenAPI documentation
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0")
// Utils
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
// Testing
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-testcontainers")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:postgresql")
testImplementation("io.mockk:mockk:1.13.9")
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.8.0")
testImplementation("io.kotest.extensions:kotest-extensions-clock:1.0.0")
testImplementation("io.kotest.extensions:kotest-extensions-spring:1.1.3")
testImplementation("io.kotest.extensions:kotest-extensions-testcontainers:2.0.2")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<BootBuildImage> {
imageName = "boardfi-api"
}
apollo {
service("uniswapV3") {
srcDir("src/main/graphql/uniswapV3")
schemaFile.set(file("src/main/graphql/uniswapV3/schemaV3.graphqls"))
packageName.set("io.boardfi.api.integrations.v3")
}
service("uniswapV2") {
srcDir("src/main/graphql/uniswapV2")
schemaFile.set(file("src/main/graphql/uniswapV2/schemaV2.graphqls"))
packageName.set("io.boardfi.api.integrations.v2")
}
}