File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
android-junit5-embedded-runtime Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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+
4360version = VERSION_NAME
4461
4562publishing {
You can’t perform that action at this time.
0 commit comments