-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathbuild.gradle
70 lines (58 loc) · 1.79 KB
/
build.gradle
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
plugins {
alias(libs.plugins.kotlin.jvm)
id 'java'
id 'java-test-fixtures'
id 'jacoco'
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencies {
// PLEASE ADD AND UPDATE DEPENDENCIES USING libs.versions.toml
implementation project(':osrd-reporting')
implementation project(":kt-osrd-sim-infra")
api project(":kt-osrd-utils")
implementation libs.guava
implementation libs.slf4j
// for debug UI
implementation libs.jmathplot
// fast primitive collections
implementation libs.hppc
// Use JUnit Jupiter API for testing.
testImplementation libs.junit.jupiter.api
testImplementation libs.junit.jupiter.params
testFixturesImplementation libs.junit.jupiter.api
testFixturesImplementation libs.guava
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly libs.junit.jupiter.engine
// for linter annotations
testFixturesCompileOnly libs.jcip.annotations
testFixturesCompileOnly libs.spotbugs.annotations
compileOnly libs.jcip.annotations
compileOnly libs.spotbugs.annotations
testCompileOnly libs.jcip.annotations
testCompileOnly libs.spotbugs.annotations
implementation libs.kotlin.logging
implementation libs.kotlin.stdlib
testImplementation libs.kotlin.test
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += [
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-opt-in=kotlin.time.ExperimentalTime",
"-opt-in=kotlin.contracts.ExperimentalContracts",
]
}
}
test {
useJUnitPlatform {
includeEngines 'jqwik', 'junit-jupiter'
}
}