Skip to content

How to use local library snapshot? #1453

Answered by TWiStErRob
dpproduction asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I know: all of them.

I think your best bet is to:

  • do a gradlew publishToMavenLocal
  • adjust your repository listing to add mavenLocal(),
  • so that you can use it as "normal",
  • by just bumping the version number where necessary.

This is almost how the tests work in the repo:

paparazzi/build.gradle

Lines 70 to 75 in a2e9b03

publishing {
repositories {
maven {
name = "projectLocalMaven"
url = rootProject.layout.buildDirectory.dir("localMaven")
}

dependsOn(':paparazzi:publishMavenPublicationToProjectLocalMavenRepository')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dpproduction
Comment options

@TWiStErRob
Comment options

Answer selected by dpproduction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants