Set type to PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS for published consumed only by Kotlin libs

This is so we can get libraryType.targetsKotlinConsumersOnly set to true for optimisation

BUG: 336352387

TESTED: compiled projects with type change and asserted that their value of libraryType.targetsKotlinConsumerOnly is true

Change-Id: I8293fb8e2b2cdc77a9e5e2a49d902b1ff0a37521
diff --git a/lifecycle/lifecycle-viewmodel-compose/build.gradle b/lifecycle/lifecycle-viewmodel-compose/build.gradle
index b3f68562..6341854 100644
--- a/lifecycle/lifecycle-viewmodel-compose/build.gradle
+++ b/lifecycle/lifecycle-viewmodel-compose/build.gradle
@@ -21,11 +21,8 @@
  * Please use that script when creating a new project, rather than copying an existing project and
  * modifying its settings.
  */
-
+import androidx.build.LibraryType
 import androidx.build.PlatformIdentifier
-import androidx.build.Publish
-import androidx.build.RunApiTasks
-import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
 
 plugins {
     id("AndroidXPlugin")
@@ -94,10 +91,9 @@
 
 androidx {
     name = "Lifecycle ViewModel Compose"
-    publish = Publish.SNAPSHOT_AND_RELEASE
+    type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
     inceptionYear = "2021"
     description = "Compose integration with Lifecycle ViewModel"
-    runApiTasks = new RunApiTasks.Yes()
     samples(projectOrArtifact(":lifecycle:lifecycle-viewmodel-compose:lifecycle-viewmodel-compose-samples"))
 }