File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ android {
50
50
abortOnError true
51
51
}
52
52
53
+ publishing {
54
+ multipleVariants {
55
+ allVariants()
56
+ withJavadocJar()
57
+ withSourcesJar()
58
+ }
59
+ }
60
+
53
61
testOptions {
54
62
unitTests. all {
55
63
useJUnitPlatform()
@@ -72,13 +80,6 @@ dependencies {
72
80
androidTestImplementation ' androidx.test:rules:1.5.0'
73
81
}
74
82
75
- task generateSourcesJar (type : Jar ) {
76
- from android. sourceSets. main. java. srcDirs
77
- archiveClassifier. set(' sources' )
78
- description = " Builds up a jar of this module's sources."
79
- group = ' build'
80
- }
81
-
82
83
task generateJavadocJar (type : Jar ) {
83
84
from dokkaJavadoc
84
85
archiveClassifier. set(" javadoc" )
@@ -92,7 +93,6 @@ afterEvaluate {
92
93
release(MavenPublication ) {
93
94
from components. release
94
95
artifact generateJavadocJar
95
- // artifact generateSourcesJar
96
96
97
97
groupId getProperty(' projectGroupName' )
98
98
artifactId getProperty(' projectArtifactName' )
@@ -129,7 +129,6 @@ afterEvaluate {
129
129
debug(MavenPublication ) {
130
130
from components. debug
131
131
artifact generateJavadocJar
132
- // artifact generateSourcesJar
133
132
134
133
groupId getProperty(' projectGroupName' )
135
134
artifactId getProperty(' projectArtifactName' )
You can’t perform that action at this time.
0 commit comments