[GH] Use projectOrArtifact for fragment playground

https://github.com/androidx/androidx/actions/runs/6488639790/job/17621489436

Unsupported Playground Project: :core:core
dependency path to :core:core from explicitly requested projects: :fragment:fragment-testing -> :core:core-ktx -> :core:core :fragment:integration-tests:testapp -> :transition:transition -> :core:core

Test: cd fragment && ./gradlew bOS
Change-Id: Ia87330f17ac28ce16a517ae0ee5d2c68db758064

This is an imported pull request from https://github.com/androidx/androidx/pull/619.

Resolves #619
Github-Pr-Head-Sha: acaef56e05322cc2cd5571fda115554a513c6683
GitOrigin-RevId: d5ce62b5faabd01b364a429116c9ff9d9d84f394
Change-Id: I4fabb4fb17c9fa1d66142e3620ceb64dbf306413
diff --git a/fragment/fragment-testing/build.gradle b/fragment/fragment-testing/build.gradle
index f92585a..c9ab626 100644
--- a/fragment/fragment-testing/build.gradle
+++ b/fragment/fragment-testing/build.gradle
@@ -28,7 +28,7 @@
     api("androidx.test:core:1.5.0")
     api(libs.kotlinStdlib)
     api(project(":fragment:fragment-testing-manifest"))
-    implementation(project(":core:core-ktx"))
+    implementation(projectOrArtifact(":core:core-ktx"))
     androidTestImplementation(libs.kotlinStdlib)
     androidTestImplementation(libs.espressoCore)
     androidTestImplementation(libs.testExtJunit)
diff --git a/fragment/integration-tests/testapp/build.gradle b/fragment/integration-tests/testapp/build.gradle
index 6f03e89..a5151d3 100644
--- a/fragment/integration-tests/testapp/build.gradle
+++ b/fragment/integration-tests/testapp/build.gradle
@@ -27,7 +27,7 @@
 dependencies {
     implementation(libs.kotlinStdlib)
     implementation(project(":fragment:fragment-ktx"))
-    implementation(project(":transition:transition"))
+    implementation(projectOrArtifact(":transition:transition"))
     implementation("androidx.recyclerview:recyclerview:1.1.0")
     debugImplementation(project(":fragment:fragment-testing-manifest"))