forked from MineInAbyss/Idofront
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
52 lines (45 loc) · 1.38 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
java
alias(libs.plugins.kotlin.jvm) apply false
id("com.boy0000.conventions.autoversion")
alias(libs.plugins.dependencyversions)
}
subprojects {
repositories {
mavenCentral()
maven("https://repo.mineinabyss.com/releases")
maven("https://erethon.de/repo/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://jitpack.io")
maven("https://mvn.lumine.io/repository/maven/")
maven("https://repo.unnamed.team/repository/unnamed-public/")
maven("https://repo.oraxen.com/releases")
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}
}
}
}
repositories {
mavenCentral()
}
tasks {
register("publish") {
dependsOn(gradle.includedBuilds.map { it.task(":publish") })
}
register("publishToMavenLocal") {
dependsOn(gradle.includedBuilds.map { it.task(":publishToMavenLocal") })
}
build {
dependsOn(gradle.includedBuilds.map { it.task(":build") })
}
}