-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
63 lines (55 loc) · 1.71 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
63
plugins {
kotlin("jvm") version "1.8.22"
kotlin("plugin.serialization") version "1.8.22"
id("net.mamoe.mirai-console") version "2.16.0"
id("me.him188.maven-central-publish") version "1.0.0"
}
group = "xyz.cssxsh.mirai"
version = "1.4.4"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "mirai-administrator")
licenseFromGitHubProject("AGPL-3.0")
workingDir = System.getenv("PUBLICATION_TEMP")?.let { file(it).resolve(projectName) }
?: buildDir.resolve("publishing-tmp")
publication {
artifact(tasks["buildPlugin"])
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api("com.cronutils:cron-utils:9.2.1")
api("jakarta.mail:jakarta.mail-api:2.1.3")
api("org.apache.poi:poi-ooxml:5.3.0") // fix https://github.com/cssxsh/mirai-administrator/issues/32
implementation("org.eclipse.angus:angus-mail:2.0.3")
testImplementation(kotlin("test"))
//
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
compileOnly("net.mamoe:mirai-core")
compileOnly("net.mamoe:mirai-core-utils")
compileOnly("net.mamoe:mirai-console-compiler-common")
testImplementation("net.mamoe:mirai-core-mock")
testImplementation("net.mamoe:mirai-logging-slf4j")
testImplementation("net.mamoe:mirai-core-utils")
//
implementation(platform("io.ktor:ktor-bom:2.3.10"))
implementation("io.ktor:ktor-client-okhttp")
implementation("io.ktor:ktor-client-encoding")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.15"))
testImplementation("org.slf4j:slf4j-simple")
}
kotlin {
explicitApi()
}
mirai {
jvmTarget = JavaVersion.VERSION_11
}
tasks {
test {
useJUnitPlatform()
}
}