The library is available on Maven Central. Add the library dependency to your build.gradle.kts
file:
implementation("com.gu.source:source-android:0.0.1")
See the main README for using the library.
-
Build the library Run
./gradlew :source:publishReleasePublicationToGusourceRepository
This will produce the library output at
/source/build/gusource/
. -
Copy the built library to the news app Copy the library the built folder from
/source/build/gusource/
to theandroid-news-app/src/main/libs/maven
folder in theandroid-news-app
repo. -
Update the version number in the news app If the library version has changed, update it in the version catalog for the news app.
-
Build the library Run
./gradlew :source:publishToMavenLocal
This will publish the library to your local maven repository.
-
Update the version number in the news app If the library version has changed, update it in the version catalog for the news app.
-
Ensure you have
mavenLocal
declared first in your repositoriesrepositories { mavenLocal() mavenCentral() google() }
- We use the
com.gu
package name and group id so we can use the Guardian's Sonatype infra for signing and publishing the library. See this comment for reference.