Skip to content

How do I import all library modules in one line for version 0.2.0? #203

Answered by vestrel00
vestrel00 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay. I finally figure it out!

The issue is not present if our library users use the new dependency resolution management; https://developer.android.com/studio/build/dependencies#remote-repositories

This is where the Jitpack repository needs to be added. Inside settings.gradle, it should look like,

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

This only applies to releases starting with 0.2.0. Prior releases can still be imported using the old way in the root build.gradle,

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io"

Replies: 15 comments 6 replies

Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 28, 2022
Maintainer Author

You must be logged in to vote
4 replies
@vestrel00
Comment options

vestrel00 Mar 29, 2022
Maintainer Author

@vestrel00
Comment options

vestrel00 Mar 29, 2022
Maintainer Author

@vestrel00
Comment options

vestrel00 Mar 29, 2022
Maintainer Author

@vestrel00
Comment options

vestrel00 Mar 29, 2022
Maintainer Author

Comment options

vestrel00
Mar 29, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

vestrel00
Mar 29, 2022
Maintainer Author

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

vestrel00 Mar 29, 2022
Maintainer Author

@vestrel00
Comment options

vestrel00 Mar 29, 2022
Maintainer Author

Answer selected by vestrel00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
build Build, Gradle, Android Studio, Dependencies release This is related to a particular release
1 participant
Converted from issue

This discussion was converted from issue #202 on March 28, 2022 23:37.