-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (33 loc) · 972 Bytes
/
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
plugins {
val kotlinVersion = "1.8.10"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("net.mamoe.mirai-console") version "2.16.0";
}
group = "org.laolittle.plugin"
version = "2.0.1"
repositories {
if (System.getenv("CI")?.toBoolean() != true) {
maven("https://maven.aliyun.com/repository/public")
}
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
mirai {
noTestCore = true
setupConsoleTestRuntime {
classpath = classpath.filter {
!it.nameWithoutExtension.startsWith("mirai-core-jvm")
}
}
}
dependencies {
val overflowVersion = "2.16.0-00fd581-SNAPSHOT"
compileOnly("top.mrxiaom:overflow-core-api:$overflowVersion")
testConsoleRuntime("top.mrxiaom:overflow-core:$overflowVersion")
}
tasks {
compileKotlin {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}