-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
44 lines (37 loc) · 1010 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
40
41
42
43
44
plugins {
kotlin("jvm") version "1.7.22"
kotlin("plugin.serialization") version "1.7.22"
id("net.mamoe.mirai-console") version "2.15.0"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}
group = "xyz.cssxsh.mirai"
version = "1.3.0"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "mirai-device-generator")
licenseFromGitHubProject("AGPL-3.0")
workingDir = System.getenv("PUBLICATION_TEMP")?.let { file(it).resolve(projectName) }
?: buildDir.resolve("publishing-tmp")
publication {
artifact(tasks["buildPlugin"])
}
}
repositories {
mavenCentral()
maven("https://repo.mirai.mamoe.net/snapshots")
}
dependencies {
testImplementation(kotlin("test"))
//
implementation(platform("net.mamoe:mirai-bom:2.15.0"))
compileOnly("net.mamoe:mirai-core-utils")
compileOnly("net.mamoe:mirai-console-compiler-common")
}
kotlin {
explicitApi()
}
tasks {
test {
useJUnitPlatform()
}
}