-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
43 lines (35 loc) · 1.05 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
plugins {
val kotlinVersion = "1.8.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("com.github.gmazzo.buildconfig") version "3.1.0"
id("net.mamoe.mirai-console") version "2.16.0"
}
group = "org.example"
version = "0.1.0"
repositories {
if (System.getenv("CI")?.toBoolean() != true) {
maven("https://maven.aliyun.com/repository/public") // 阿里云国内代理仓库
}
mavenCentral()
}
buildConfig {
className("BuildConstants")
packageName("org.example.mirai.plugin")
useKotlinOutput()
buildConfigField("String", "VERSION", "\"${project.version}\"")
}
mirai {
noTestCore = true
setupConsoleTestRuntime {
// 移除 mirai-core 依赖
classpath = classpath.filter {
!it.nameWithoutExtension.startsWith("mirai-core-jvm")
}
}
}
dependencies {
val overflowVersion = "2.16.0"
compileOnly("top.mrxiaom:overflow-core-api:$overflowVersion")
testConsoleRuntime("top.mrxiaom:overflow-core:$overflowVersion")
}