Gradle plugin. Replace 'androidx.compose' artifacts by 'org.jetbrains.compose' artifacts, get version from gradle properties

Fixes https://github.com/JetBrains/compose-jb/issues/272
This commit is contained in:
Igor Demin
2021-02-18 10:52:09 +03:00
parent 48b52e459a
commit 64fe5bc025

View File

@@ -6,16 +6,17 @@ import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.runBlocking
import org.gradle.api.Project
private const val libsRepo = "https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/"
private const val version = "0.3.0-build154"
private val exceptions = listOf(
"desktop:desktop",
"compose-full",
"compose-gradle-plugin"
)
fun printAllAndroidxReplacements() = runBlocking {
fun Project.printAllAndroidxReplacements() = runBlocking {
val version = BuildProperties.composeVersion(project)
HttpClient().use { client ->
client
.allRecursiveFolders(libsRepo)