Use implementation instead of api.
This is recommended as a best practice, though AFAIK this only matters for projects that are going to be imported by other projects. For instance, you used to be able to include `:deps:extension-api` by including any extension that depended on it. Now, every project that wants to use `extension-api` has to include it directly. (Which is fine because in practice, they all already do so.)
This commit is contained in:
@@ -83,8 +83,8 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api fileTree(dir: 'libs', include: ['*.jar'])
|
||||
::if (ANDROID_LIBRARY_PROJECTS)::::foreach (ANDROID_LIBRARY_PROJECTS)::api project(':deps:::name::')
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
::if (ANDROID_LIBRARY_PROJECTS)::::foreach (ANDROID_LIBRARY_PROJECTS)::implementation project(':deps:::name::')
|
||||
::end::::end::
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,6 @@ configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('bui
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api project(':deps:extension-api')
|
||||
implementation project(':deps:extension-api')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,5 +17,5 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api project(':deps:extension-api')
|
||||
implementation project(':deps:extension-api')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user