Rename publish = Publish.SNAPSHOT_AND_RELEASE to type = LibraryType.PublishedLibrary

Part of consolidating to only use AndroidXExtension.type to control publishing

BUG: 327630926

TESTED: ran ./gradlew publish --dry-run and the tasks are the same as that on androidx-main
Change-Id: I8834fec7139102ee6a2c647c4610b3dc05a2c09b
diff --git a/camera/camera-camera2-pipe-integration/build.gradle b/camera/camera-camera2-pipe-integration/build.gradle
index 74db51a..265db91 100644
--- a/camera/camera-camera2-pipe-integration/build.gradle
+++ b/camera/camera-camera2-pipe-integration/build.gradle
@@ -21,7 +21,7 @@
  * Please use that script when creating a new project, rather than copying an existing project and
  * modifying its settings.
  */
-import androidx.build.Publish
+import androidx.build.LibraryType
 
 plugins {
     id("AndroidXPlugin")
@@ -106,7 +106,7 @@
 
 androidx {
     name = "Camera2 Pipe Integration"
-    publish = Publish.SNAPSHOT_AND_RELEASE
+    type = LibraryType.PUBLISHED_LIBRARY
     inceptionYear = "2020"
     description = "A Camera2 Pipe implementation of CameraX, a library providing a consistent " +
             "and reliable camera foundation that enables great camera driven experiences across " +