We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37c4666 + 084a126 commit 0329019Copy full SHA for 0329019
build.gradle
@@ -50,10 +50,19 @@ task writePom {
50
51
jar {
52
dependsOn writePom
53
- from sourceSets.main.allSource
54
into("META-INF/maven/$project.group/$project.name") {
55
- from("pom.xml")
56
- }
+ from("pom.xml")
+ }
+}
57
+
58
+task javadocJar(type: Jar) {
59
+ classifier = 'javadoc'
60
+ from javadoc
61
62
63
+task sourcesJar(type: Jar) {
64
+ classifier = 'sources'
65
+ from sourceSets.main.allSource
66
}
67
68
task jarWithDependencies(type: Jar) {
@@ -63,6 +72,10 @@ task jarWithDependencies(type: Jar) {
72
with jar
73
74
75
+artifacts {
76
+ archives javadocJar, sourcesJar, jarWithDependencies
77
78
79
test {
80
testLogging {
81
events "passed", "skipped" , "failed"
0 commit comments