-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (49 loc) · 1.4 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
plugins {
id("java")
id("groovy")
id("application")
id("org.graalvm.buildtools.native") version "0.10.3"
id 'com.github.johnrengelman.shadow' version '8.1.1'\
}
version = "0.1"
group = "ru.bivchallenge"
repositories {
mavenCentral()
}
dependencies {
annotationProcessor 'com.google.dagger:dagger-compiler:2.52'
implementation 'de.siegmar:fastcsv:3.4.0'
implementation 'org.jgrapht:jgrapht-core:1.5.2'
implementation 'com.google.dagger:dagger:2.52'
implementation platform('org.apache.groovy:groovy-bom:4.0.24')
implementation 'org.apache.groovy:groovy'
testImplementation platform("org.spockframework:spock-bom:2.3-groovy-4.0")
testImplementation "org.spockframework:spock-core"
}
application {
mainClass = 'ru.bivchallenge.CastleApplication'
}
java {
sourceCompatibility = JavaVersion.toVersion("21")
targetCompatibility = JavaVersion.toVersion("21")
}
graalvmNative.toolchainDetection = false
graalvmNative {
binaries {
main {
imageName.set('castle-application')
buildArgs.addAll(
"--no-fallback",
"--initialize-at-build-time=ru.bivchallenge",
"--report-unsupported-elements-at-runtime",
"--verbose"
)
}
}
}
tasks.test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}