-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (60 loc) · 1.93 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
64
65
66
67
68
plugins {
kotlin("jvm") version "1.8.10"
kotlin("plugin.serialization") version "1.8.10"
id("net.mamoe.mirai-console") version "2.16.0"
id("me.him188.maven-central-publish") version "1.0.0"
id("me.him188.kotlin-jvm-blocking-bridge") version "3.0.0-180.1"
}
group = "xyz.cssxsh.mirai"
version = "2.6.0"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "mirai-selenium-plugin")
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.github.jknack:handlebars:4.3.1")
api("org.seleniumhq.selenium:selenium-java:4.20.0")
implementation("org.apache.commons:commons-compress:1.26.1")
implementation("org.tukaani:xz:1.9")
implementation("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")
testImplementation(kotlin("test"))
testImplementation("org.icepear.echarts:echarts-java:1.0.7")
//
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
testImplementation("net.mamoe:mirai-logging-slf4j")
testImplementation("net.mamoe:mirai-console-compiler-common")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.13"))
testImplementation("org.slf4j:slf4j-simple")
testImplementation("org.slf4j:jcl-over-slf4j")
testImplementation("org.slf4j:jul-to-slf4j")
//
implementation(platform("org.asynchttpclient:async-http-client-bom:2.12.3"))
implementation("org.asynchttpclient:async-http-client")
//
implementation(platform("io.netty:netty-bom:4.1.109.Final"))
}
kotlin {
explicitApi()
}
mirai {
jvmTarget = JavaVersion.VERSION_11
if (System.getenv("CI").toBoolean()) {
useTestConsoleFrontEnd = null
}
}
tasks {
test {
useJUnitPlatform()
}
}