-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (43 loc) · 1.37 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
import org.gradle.api.JavaVersion.VERSION_1_8
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
plugins {
// Apply the java plugin to add support for Java
java
// Apply the application plugin to add support for building a CLI application.
application
}
repositories {
// Use jcenter for resolving dependencies.
jcenter()
}
dependencies {
// This dependency is used by the application.
implementation("com.google.guava:guava:29.0-jre")
//db driver
implementation("mysql:mysql-connector-java:8.0.22")
// Use JUnit Jupiter API for testing.
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.6.2")
testImplementation("org.mockito:mockito-core:3.6.28")
testImplementation("org.mockito:mockito-junit-jupiter:3.6.28")
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
}
application {
// Define the main class for the application.
mainClassName = "ru.itmo.app.Main"
}
java {
sourceCompatibility = VERSION_1_8
targetCompatibility = VERSION_1_8
}
val test by tasks.getting(Test::class) {
// Use junit platform for unit tests
useJUnitPlatform()
}