diff options
author | Aurimas Liutikas <aurimas@google.com> | 2021-06-30 08:27:23 -0700 |
---|---|---|
committer | Aurimas Liutikas <aurimas@google.com> | 2021-06-30 08:27:23 -0700 |
commit | bbbb1f6b786dd46354a81bb88710ab8120240043 (patch) | |
tree | b57a0b19b1e9396006f439f1d0d9ed70bd41fc8d | |
parent | 65982dc6771184edafe42711e15b7b2f0b7ea0a2 (diff) | |
download | icing-bbbb1f6b786dd46354a81bb88710ab8120240043.tar.gz |
Move to using version catalogs for protobuf in icing.androidx-wear-wear-ongoing-release
Test: ./gradlew tasks
Change-Id: I44588c60b2c64c97f20b1cbe56ed3cda24f5a5e9
-rw-r--r-- | build.gradle | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle index f922a6a..0f60c5e 100644 --- a/build.gradle +++ b/build.gradle @@ -14,8 +14,9 @@ * limitations under the License. */ + +import androidx.build.dependencies.DependenciesKt import static androidx.build.SupportConfig.* -import static androidx.build.dependencies.DependenciesKt.PROTOBUF_LITE buildscript { dependencies { @@ -64,7 +65,7 @@ dependencies { protobuf { protoc { - artifact = 'com.google.protobuf:protoc:3.10.0' + artifact = DependenciesKt.getDependencyAsString(libs.protobufCompiler) } generateProtoTasks { @@ -93,7 +94,7 @@ android.libraryVariants.all { variant -> // only renames the java classes. Remove them here since they are unused. // Expand the jar and remove any .proto files. from(zipTree(configurations.detachedConfiguration( - dependencies.create(PROTOBUF_LITE)).getSingleFile())) { + dependencies.create(libs.protobufLite.get())).getSingleFile())) { exclude("**/*.proto") } |