Closed kelson42 closed 3 years ago
Would that be an alternative? https://docs.github.com/en/packages/guides/configuring-gradle-for-use-with-github-packages
@kelson42, Maven Central is the obvious place to now publish our libraries.
Recently Big companies like kotlin(Jetbrains) who used JCenter migrated their EAPs to Maven Central.
@gouri-panda Thank you for your feedback. I'm not familiar at all with the Java/Kotlin ecosystem. Therefore I rely on your know-how:
@kelson42 Sorry, for the delay. Here's quick steps we'll go through:
What should be changed in kiwix-android assuming the lib would be available on Maeven Central?
To fully migrate away from jcenter(), all we need to do is replace all jcenter() occurrences with mavenCentral() in all build.gradle files.
// Top level build.gradle file
buildscript {
repositories {
google()
- jcenter()
+ mavenCentral()
}
}
...
allprojects {
repositories {
- jcenter()
+ mavenCentral()
}
}
// buildSrc level build.gradle file
repositories {
- jcenter()
+ mavenCentral()
}
After replacing all repositories, we can test if our build still passes by running the following command:
./gradlew assemble assembleDebugUnitTest assembleAndroidTest --refresh-dependencies
This will ensure all dependencies for every build type are downloaded again. Such a “clean” build will assess whether our app can be built independently of jcenter().
OK, so lets go for Maven Central. We will publish soon a new libkiwix with the current process. Following ones will be done on Maven Central. I will secure and account, the keys, etc... and they we will have too look how to get libkiwix uploaded properly with kiwix-build to Maven Central.
Request to get a repository on Maven Central done https://issues.sonatype.org/browse/OSSRH-66717
This is a prerequisite to any change to the libkiwix JNI
Bintray will sunset in May. As a consequence the libkiwix binaries for Kiwix Android won't be distributed anymore and it will be difficult to compile Kiwix Android. See https://bintray.com/kiwix/kiwix/kiwixlib/9.4.1
What should we do?