Skip to content

Commit ae818e1

Browse files
committed
feat: maven-central-publish
1 parent 5503d18 commit ae818e1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle.kts

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
kotlin("plugin.serialization") version "1.6.21"
44

55
id("net.mamoe.mirai-console") version "2.11.1"
6+
id("net.mamoe.maven-central-publish") version "0.7.1"
67
}
78

89
group = "xyz.cssxsh.meme-helper"
@@ -13,6 +14,16 @@ repositories {
1314
mavenCentral()
1415
}
1516

17+
mavenCentralPublish {
18+
useCentralS01()
19+
singleDevGithubProject("cssxsh", "meme-helper")
20+
licenseFromGitHubProject("AGPL-3.0", "master")
21+
publication {
22+
artifact(tasks.getByName("buildPlugin"))
23+
artifact(tasks.getByName("buildPluginLegacy"))
24+
}
25+
}
26+
1627
dependencies {
1728
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.2.3")
1829
compileOnly("xyz.cssxsh.mirai:mirai-skia-plugin:1.1.0")

0 commit comments

Comments
 (0)