This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
70 lines (60 loc) · 2.04 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.mia.kotlin.jvm)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.mia.papermc)
alias(libs.plugins.mia.nms)
alias(libs.plugins.mia.copyjar)
alias(libs.plugins.mia.publication)
alias(libs.plugins.mia.testing)
alias(libs.plugins.mia.autoversion)
}
allprojects {
apply(plugin = "java")
apply(plugin = "org.jetbrains.dokka")
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}
}
repositories {
mavenCentral()
maven("https://repo.mineinabyss.com/releases")
maven("https://repo.mineinabyss.com/snapshots")
maven("https://repo.dmulloy2.net/nexus/repository/public/") //ProtocolLib
maven("https://maven.enginehub.org/repo/") //WorldGuard/Edit
maven("https://mvn.lumine.io/repository/maven-public/")
maven("https://jitpack.io")
mavenLocal()
}
dependencies {
val libs = rootProject.libs
val myLibs = rootProject.myLibs
compileOnly(myLibs.geary.papermc)
implementation(libs.bundles.idofront.core)
implementation(libs.idofront.nms)
}
}
dependencies {
// MineInAbyss platform
compileOnly(libs.kotlin.stdlib)
compileOnly(libs.kotlinx.serialization.json)
compileOnly(libs.kotlinx.serialization.kaml)
compileOnly(libs.kotlinx.coroutines)
compileOnly(libs.minecraft.mccoroutine)
compileOnly(libs.idofront.di)
// Shaded
api(project(":mobzy-pathfinding"))
api(project(":mobzy-features"))
api(project(":mobzy-spawning"))
api(project(":mobzy-core"))
api(project(":mobzy-modelengine"))
// Testing
testImplementation(libs.kotlin.statistics)
testImplementation(libs.minecraft.mockbukkit)
testImplementation(libs.kotlinx.serialization.json)
testImplementation(libs.kotlinx.serialization.kaml)
}