-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (43 loc) · 1.15 KB
/
build.gradle.kts
File metadata and controls
51 lines (43 loc) · 1.15 KB
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
plugins {
kotlin("jvm") version "1.7.22"
kotlin("plugin.serialization") version "1.7.22"
id("net.mamoe.mirai-console") version "2.14.0-RC"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}
group = "io.github.gnuf0rce"
version = "1.4.0"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("gnuf0rce", "netdisk-filesync-plugin", "cssxsh")
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("xyz.cssxsh.baidu:baidu-netdisk:3.3.2")
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.5.2")
testImplementation(kotlin("test"))
//
implementation(platform("net.mamoe:mirai-bom:2.14.0-RC"))
compileOnly("net.mamoe:mirai-console-compiler-common")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.6"))
}
mirai {
jvmTarget = JavaVersion.VERSION_11
}
kotlin {
explicitApi()
}
tasks {
test {
useJUnitPlatform()
}
}