-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
62 lines (56 loc) · 2.09 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
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
plugins {
alias(idofrontLibs.plugins.kotlin.multiplatform)
alias(idofrontLibs.plugins.dokka)
alias(idofrontLibs.plugins.mia.autoversion)
alias(idofrontLibs.plugins.dependencyversions)
alias(idofrontLibs.plugins.version.catalog.update)
}
allprojects {
repositories {
mavenCentral()
google()
maven("https://repo.mineinabyss.com/releases")
maven("https://repo.mineinabyss.com/snapshots")
maven("https://jitpack.io")
mavenLocal()
}
}
allprojects {
apply(plugin = "org.jetbrains.dokka")
pluginManager.withPlugin("org.jetbrains.kotlin.multiplatform") {
kotlin {
jvm {
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
// TODO Other targets are missing some implementations like Roaring Bitmaps, but we hope someone
// interested can add support in the future. Thus, we force a target that doesn't actually compile
// so we can't accidentally use jvm-only code in the common target.
linuxX64()
sourceSets {
all {
languageSettings {
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
optIn("kotlin.time.ExperimentalTime")
optIn("kotlin.ExperimentalUnsignedTypes")
optIn("kotlin.uuid.ExperimentalUuidApi")
optIn("kotlinx.serialization.ExperimentalSerializationApi")
optIn("kotlin.RequiresOptIn")
}
}
}
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.addAll(
listOf(
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-Xexpect-actual-classes"
)
)
}
}
}
}