generated from project-mirai/mirai-console-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (31 loc) · 1.1 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
plugins {
val kotlinVersion = "1.9.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("net.mamoe.mirai-console") version "2.16.0"
}
group = "ltd.guimc.lgzbot.wynn"
version = "0.1.0"
dependencies {
val overflow_version = "2.16.0-db61867-SNAPSHOT"
implementation(kotlin("stdlib"))
compileOnly("top.mrxiaom:overflow-core-api:$overflow_version")
compileOnly("top.mrxiaom:overflow-core:$overflow_version")
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
}
repositories {
maven("https://maven.aliyun.com/repository/public") // 阿里云国内代理仓库
maven { url = uri("https://repo.repsy.io/mvn/chrynan/public") }
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
}
mirai {
noTestCore = true
setupConsoleTestRuntime {
// 移除 mirai-core 依赖
classpath = classpath.filter {
!it.nameWithoutExtension.startsWith("mirai-core-jvm") ||
!it.nameWithoutExtension.startsWith("overflow-api")
}
}
}