-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (39 loc) · 1.13 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
plugins {
id("java")
}
group = "io.flamingock"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
}
val mongodbVersion = "4.3.3"
val jacksonVersion = "2.15.2"
val flamingockVersion = "0.0.30-beta"
dependencies {
implementation("io.flamingock:mongodb-sync-v4-driver:$flamingockVersion")
implementation("io.flamingock:flamingock-core:$flamingockVersion")
implementation("io.flamingock:flamingock-graalvm:$flamingockVersion")
annotationProcessor("io.flamingock:flamingock-core:$flamingockVersion")
implementation("org.mongodb:mongodb-driver-sync:$mongodbVersion")
implementation("org.slf4j", "slf4j-api", "2.0.6")
implementation("org.slf4j:slf4j-simple:2.0.6")
}
tasks.test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "io.flamingock.App"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
from({
configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
})
}