-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (39 loc) · 1.01 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
plugins {
kotlin("jvm") version "1.7.20"
kotlin("plugin.serialization") version "1.7.20"
id("net.mamoe.mirai-console") version "2.12.3"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}
group = "xyz.cssxsh.mirai"
version = "1.0.0"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "mirai-hibernate-nlp")
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 {
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.4.4")
testImplementation(kotlin("test"))
testImplementation("org.slf4j:slf4j-simple:2.0.1")
testImplementation("net.mamoe:mirai-logging-slf4j:2.12.3")
}
mirai {
jvmTarget = JavaVersion.VERSION_11
}
kotlin {
explicitApi()
}
tasks {
test {
useJUnitPlatform()
}
}