-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
62 lines (49 loc) · 1.33 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
plugins {
`kotlin-dsl`
`maven-publish`
id("java")
}
group = "io.mongock.example.graalvm"
version = "1.0-SNAPSHOT"
apply {
plugin("org.jetbrains.kotlin.jvm")
plugin("maven-publish")
}
repositories {
mavenCentral()
mavenLocal()
}
val mongodbVersion = "4.3.3"
dependencies {
implementation("io.mongock:mongock-standalone:5.3.5")
implementation("io.mongock:mongodb-sync-v4-driver:5.3.5")
implementation("org.mongodb:mongodb-driver-sync:$mongodbVersion")
implementation("org.mongodb:mongodb-driver-core:$mongodbVersion")
implementation("org.mongodb:bson:$mongodbVersion")
implementation(kotlin("stdlib-jdk8"))
implementation("org.slf4j", "slf4j-api", "2.0.6")
implementation("org.slf4j:slf4j-simple:2.0.6")
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "io.mongock.example.graalvm.App"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
dependsOn(configurations.compileClasspath)
from({
configurations.compileClasspath.get().filter {
it.name.endsWith("jar")
}.map { zipTree(it) }
})
}