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/navigation/navigation-runtime/build.gradle b/navigation/navigation-runtime/build.gradle
index 6e626be..59cd141 100644
--- a/navigation/navigation-runtime/build.gradle
+++ b/navigation/navigation-runtime/build.gradle
@@ -21,8 +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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile
+import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
@@ -70,7 +69,7 @@
androidx {
name = "Navigation Runtime"
- publish = Publish.SNAPSHOT_AND_RELEASE
+ type = LibraryType.PUBLISHED_LIBRARY
inceptionYear = "2017"
description = "Android Navigation-Runtime"
metalavaK2UastEnabled = true