-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (59 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
64
plugins {
alias(libs.plugins.kotlin.jvm)
`maven-publish`
`signing`
}
group = "top.brightk"
version = "1.2.0"
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
google()
}
apply(from = "${rootDir.parent}/gradle/publish.gradle.kts")
val uploadRepository: Action<RepositoryHandler> by extra
publishing {
publications {
create<MavenPublication>("CsPlugin") {
artifactId = "cs-annotation"
groupId = project.group.toString()
version = project.version.toString()
from(components["java"])
pom {
// public maven must
name.set("CS plugin")
description.set("CS plugin,work for CS Annotation,注解,ksp,plugin使用")
val pomUrl = "https://github.com/cugkuan/CS"
val pomScm = "https://github.com/cugkuan/CS.git"
url.set(pomUrl)
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("BrightK")
name.set("BrightK")
email.set("[email protected]")
}
}
scm {
connection.set(pomUrl)
developerConnection.set(pomScm)
url.set(pomUrl)
}
}
}
}
repositories(uploadRepository)
}
afterEvaluate {
signing {
sign(publishing.publications)
}
}