-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
101 lines (89 loc) · 3.89 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
98
99
100
101
import org.gradle.testing.jacoco.tasks.JacocoReport
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.0.6"
id("io.spring.dependency-management") version "1.1.0"
kotlin("jvm") version "1.7.22"
kotlin("plugin.spring") version "1.7.22"
kotlin("plugin.jpa") version "1.7.22"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("jacoco")
id("com.adarshr.test-logger") version "3.2.0"
}
group = "com.team-caffeine"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
developmentOnly("org.springframework.boot:spring-boot-devtools")
runtimeOnly("com.mysql:mysql-connector-j")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation("com.auth0:java-jwt:3.18.2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
implementation("com.google.auth:google-auth-library-oauth2-http:1.3.0")
implementation("com.google.apis:google-api-services-calendar:v3-rev411-1.25.0")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.google.apis:google-api-services-sqladmin:v1beta4-rev35-1.22.0")
implementation("com.google.api-client:google-api-client-java6:1.31.0")
implementation("org.springframework.boot:spring-boot-starter")
implementation("io.github.cdimascio:java-dotenv:5.2.2")
implementation("com.google.apis:google-api-services-sqladmin:v1beta4-rev35-1.22.0")
implementation("com.google.api-client:google-api-client:1.31.1")
implementation("com.google.maps:google-maps-services:0.15.0")
implementation("com.google.auth:google-auth-library-oauth2-http:1.17.0")
implementation("com.google.oauth-client:google-oauth-client-jetty:1.34.1")
implementation("io.jsonwebtoken:jjwt:0.9.1")
implementation("com.google.apis:google-api-services-people:v1-rev537-1.25.0")
testImplementation("com.h2database:h2")
testImplementation("io.mockk:mockk:1.9.3")
testImplementation("org.mockito:mockito-core:3.12.4")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
testImplementation("org.mockito.kotlin:mockito-kotlin:5.0.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2")
implementation("software.amazon.awssdk:dynamodb:2.20.115")
implementation("org.bouncycastle:bcprov-jdk15on:1.68")
implementation("com.google.cloud:google-cloud-secretmanager:2.28.0")
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<JacocoReport> {
reports {
xml.required.set(true)
html.required.set(true)
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.named<JacocoReport>("jacocoTestReport") {
dependsOn("test")
sourceDirectories.setFrom(files("src/main/kotlin"))
classDirectories.setFrom(files("build/classes/kotlin/main"))
executionData.setFrom(fileTree("build") { include("jacoco/test.exec") })
reports {
xml.required.set(true)
csv.required.set(false)
html.outputLocation.set(layout.buildDirectory.dir("jacocoHtml"))
}
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "17"
}
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
}