File tree Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,27 @@ dependencies {
11
11
implementationAar " com.google.android.support:wearable:${ wearVersion} "
12
12
}
13
13
14
- task sourceJar (type : Jar ) {
15
- from sourceSets. main. allJava
16
- archiveClassifier = " sources"
14
+ sourceSets {
15
+ main {
16
+ java {
17
+ srcDirs = [" src/" ]
18
+ }
19
+ resources {
20
+ srcDirs = [" src/" ]
21
+ }
22
+ }
23
+ }
24
+
25
+ task sourcesJar (type : Jar , dependsOn : classes) {
26
+ classifier = " sources"
27
+ from sourceSets. main. allSource
17
28
}
18
29
19
30
publishing {
20
31
publications {
21
32
corePublication(MavenPublication ) {
22
33
from components. java
23
- artifact sourceJar
34
+ artifact sourcesJar
24
35
pom {
25
36
groupId = " org.p5android"
26
37
artifactId = " processing-core"
@@ -61,22 +72,6 @@ publishing {
61
72
}
62
73
}
63
74
64
- sourceSets {
65
- main {
66
- java {
67
- srcDirs = [" src/" ]
68
- }
69
- resources {
70
- srcDirs = [" src/" ]
71
- }
72
- }
73
- }
74
-
75
- task sourcesJar (type : Jar , dependsOn : classes) {
76
- classifier = " sources"
77
- from sourceSets. main. allSource
78
- }
79
-
80
75
// Does not work because of Processing-specific tags in source code, such as @webref
81
76
task javadocJar (type : Jar , dependsOn : javadoc) {
82
77
classifier = " javadoc"
You can’t perform that action at this time.
0 commit comments