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:
Joseph Cloutier
2022-06-11 20:08:54 -04:00
parent 619b67b472
commit 00fd063026
3 changed files with 4 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ android {
} }
dependencies { dependencies {
api fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
::if (ANDROID_LIBRARY_PROJECTS)::::foreach (ANDROID_LIBRARY_PROJECTS)::api project(':deps:::name::') ::if (ANDROID_LIBRARY_PROJECTS)::::foreach (ANDROID_LIBRARY_PROJECTS)::implementation project(':deps:::name::')
::end::::end:: ::end::::end::
} }

View File

@@ -58,6 +58,6 @@ configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('bui
} }
dependencies { dependencies {
api project(':deps:extension-api') implementation project(':deps:extension-api')
} }
} }

View File

@@ -17,5 +17,5 @@ android {
} }
dependencies { dependencies {
api project(':deps:extension-api') implementation project(':deps:extension-api')
} }