Skip to content

Commit c203b26

Browse files
committed
Attach javadoc & sources JAR to embedded-runtime
1 parent 21fd1ab commit c203b26

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

android-junit5-embedded-runtime/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ build.doLast { shadowJar.execute() }
4040
// This section defines the necessary tasks to push new releases and snapshots using Gradle tasks.
4141
// ------------------------------------------------------------------------------------------------
4242

43+
// Include sources.jar archive in each release
44+
task sourcesJar(type: Jar, dependsOn: classes) {
45+
classifier = "sources"
46+
from sourceSets.main.allSource
47+
}
48+
49+
// Include javadoc.jar archive in each release
50+
task javadocJar(type: Jar, dependsOn: javadoc) {
51+
classifier = "javadoc"
52+
from javadoc.destinationDir
53+
}
54+
55+
artifacts {
56+
archives sourcesJar
57+
archives javadocJar
58+
}
59+
4360
version = VERSION_NAME
4461

4562
publishing {

0 commit comments

Comments
 (0)