Browse Source

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
pull/399/head
Igor Demin 4 years ago
parent
commit
64fe5bc025
  1. 5
      gradle-plugins/buildSrc/src/main/kotlin/printAllAndroidxReplacements.kt

5
gradle-plugins/buildSrc/src/main/kotlin/printAllAndroidxReplacements.kt

@ -6,16 +6,17 @@ import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.map
import kotlinx.coroutines.runBlocking 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 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( private val exceptions = listOf(
"desktop:desktop", "desktop:desktop",
"compose-full", "compose-full",
"compose-gradle-plugin" "compose-gradle-plugin"
) )
fun printAllAndroidxReplacements() = runBlocking { fun Project.printAllAndroidxReplacements() = runBlocking {
val version = BuildProperties.composeVersion(project)
HttpClient().use { client -> HttpClient().use { client ->
client client
.allRecursiveFolders(libsRepo) .allRecursiveFolders(libsRepo)

Loading…
Cancel
Save