We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd9d19 commit dbeeec8Copy full SHA for dbeeec8
1 file changed
build.gradle.kts
@@ -66,10 +66,22 @@ tasks.withType<Jar> {
66
}
67
68
69
+val sourcesJar by tasks.creating(Jar::class) {
70
+ archiveClassifier.set("sources")
71
+ from(sourceSets.main.get().allSource)
72
+}
73
+
74
+val javadocJar by tasks.creating(Jar::class) {
75
+ archiveClassifier.set("javadoc")
76
+ from(tasks.javadoc)
77
78
79
publishing {
80
publications {
81
create<MavenPublication>("pub") {
82
from(components["java"])
83
+ artifact(tasks["sourcesJar"])
84
+ artifact(tasks["javadocJar"])
85
86
pom {
87
name.set(projectName)
0 commit comments