Skip to content

Commit 47026d8

Browse files
committed
Revert "Use new withJavadocJar() and withSourcesJar() API"
This reverts commit d57d4a0.
1 parent 1bdb93d commit 47026d8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ subprojects { project ->
138138
}
139139

140140
if (project.hasProperty('publishMe') && project.publishMe) {
141-
java {
142-
withJavadocJar()
143-
withSourcesJar()
141+
task sourcesJar(type: Jar) {
142+
archiveClassifier = 'sources'
143+
from sourceSets.main.allSource
144144
}
145145

146146
task delombok(type: DelombokTask, dependsOn: classes) {
@@ -165,6 +165,11 @@ subprojects { project ->
165165
options.addStringOption('charset', 'UTF-8')
166166
}
167167

168+
task javadocJar(type: Jar) {
169+
archiveClassifier = 'javadoc'
170+
from javadoc
171+
}
172+
168173
rootProject.tasks.assembleJavadoc {
169174
dependsOn javadoc
170175
inputs.dir javadoc.destinationDir

0 commit comments

Comments
 (0)