File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 run : bash ./install_deps.sh
2323
2424 - name : Compile and prepare package
25- run : ./gradlew buildHeaders build assemble androidSourcesJar
25+ run : ./gradlew buildHeaders build assemble
2626
2727 - name : Publish to Maven Central
2828 run : ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
Original file line number Diff line number Diff line change 11apply plugin : ' maven-publish'
22apply plugin : ' signing'
33
4- tasks. register(' androidSourcesJar' , Jar ) {
5- archiveClassifier. set(' sources' )
6- if (project. plugins. findPlugin(" com.android.library" )) {
7- // For Android libraries
8- from android. sourceSets. main. java. srcDirs
9- from android. sourceSets. main. kotlin. srcDirs
10- } else {
11- // For pure Kotlin libraries, in case you have them
12- from sourceSets. main. java. srcDirs
13- from sourceSets. main. kotlin. srcDirs
14- }
15- }
16-
17- artifacts {
18- archives androidSourcesJar
19- }
20-
214def siteUrl = ' https://www.kiwix.org/en/'
225def gitUrl = ' https://github.com/kiwix/libkiwix.git'
236
@@ -35,7 +18,6 @@ afterEvaluate {
3518
3619 from components. release
3720
38- artifact androidSourcesJar
3921 pom {
4022 name = ARTIFACT_ID
4123 description = ' LibKiwix Android library'
@@ -71,13 +53,6 @@ afterEvaluate {
7153 }
7254 }
7355 }
74-
75- // Set dependency for the metadata file generation task
76- tasks. withType(GenerateModuleMetadata ). tap {
77- configureEach {
78- dependsOn tasks. named(" androidSourcesJar" )
79- }
80- }
8156}
8257
8358signing {
You can’t perform that action at this time.
0 commit comments