Enable uploading scans if user is authenticated to Gradle Enterprise.

Test: ./gradlew tasks (after authentication) -> https://ge.androidx.dev/s/ve2a4yzoa7nxo
      same command without it, log saying scan was not published.
Change-Id: Iae565c00c0e66b2ce8a77bfd5c10585b1ddf45f7
diff --git a/settings.gradle b/settings.gradle
index e56a7db..6169927 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -49,6 +49,8 @@
             value("BUILD_NUMBER", buildNumber)
             link("ci.android.com build", "https://ci.android.com/builds/branches/aosp-androidx-main/grid?head=$buildNumber&tail=$buildNumber")
         }
+        publishAlways()
+        publishIfAuthenticated()
     }
 }