-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
build.gradle.kts
73 lines (61 loc) · 2.03 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
63
64
65
66
67
68
69
70
71
72
73
plugins {
base
id("io.freefair.lombok") version "8.6"
}
buildscript {
repositories {
mavenCentral()
maven("https://plugins.gradle.org/m2/")
}
}
allprojects {
group = "net.swofty"
version = "1.0"
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
apply(plugin = "io.freefair.lombok")
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "application")
plugins.withType<JavaPlugin> {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven("https://repo.viaversion.com")
maven("https://jitpack.io")
}
dependencies {
"implementation"("org.jetbrains.kotlin:kotlin-stdlib:1.7.10")
"testImplementation"("org.junit.jupiter:junit-jupiter:5.8.2")
"implementation"("org.reflections:reflections:0.10.2")
"implementation"("com.fasterxml.jackson.core:jackson-databind:2.17.0")
"implementation"("com.fasterxml.jackson.core:jackson-annotations:2.17.0")
"implementation"("com.fasterxml.jackson.core:jackson-core:2.17.0")
"implementation"("org.json:json:20240303")
"implementation"("org.mongodb:mongo-java-driver:3.12.14")
"implementation"("org.tinylog:tinylog-api:2.7.0")
"implementation"("org.tinylog:tinylog-impl:2.7.0")
"implementation"("org.tinylog:slf4j-tinylog:2.7.0")
"compileOnly"("org.projectlombok:lombok:1.18.32")
}
tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_21.toString()
targetCompatibility = JavaVersion.VERSION_21.toString()
options.encoding = "UTF-8"
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
tasks.named<Zip>("distZip") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.named<Tar>("distTar") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}