-
Notifications
You must be signed in to change notification settings - Fork 10
Using Maven Local for Testing
Miguel Juárez López edited this page Dec 19, 2025
·
2 revisions
- Under
/capture-sdk/platform/jvm/capture/build.gradle.ktsadd version as shown below, so that you can easily identify it later (_WARNING: Do not commit these version changes)
group = "io.bitdrift"
version = "-LOCAL-SNAPSHOT" // --> Add this line
-
Navigate to
capture-sdk/platform/jvmand run./gradlew clean publishToMavenLocal. This will create the dependencies under~/.m2/repository/io/bitdrift/capture/-LOCAL-SNAPSHOT -
Go to your integration project build.gradle and include
mavenLocal():
allprojects {
repositories {
mavenLocal() // ---> Add this one
jcenter()
maven {
url 'https://dl.bitdrift.io/sdk/android-maven'
content {
includeGroup 'io.bitdrift'
}
}
google()
}
}
- Now on your app
build.gradleuse the generated version (e.g.implementation 'io.bitdrift:capture:-LOCAL-SNAPSHOT')
Steps to follow for locally testing our gradle-plugin are very similar. See this guide for reference: https://simonscholz.dev/tutorials/gradle-plugins-from-maven-local