Rename Web to HTML (#2997)

1. Rename "compose.web" to "compose.html" in Gradle DSL
2. Rename maven artifacts (with backward compatible "relocation" artifact)
3. Rename "web" folder to "html"

Will do in support/1.4.0 branch
1. Move examples/web-* to examples/html/*
2. Rename Tutorials/Web to Tutorials/HTML
3. Rename "Compose for Web" to "Compose HTML Library" in the tutorials
This commit is contained in:
Igor Demin
2023-04-06 18:07:50 +02:00
committed by GitHub
parent 4ca7aa1be9
commit 59eda00380
204 changed files with 396 additions and 312 deletions

View File

@@ -106,6 +106,7 @@ class ComposePlugin : Plugin<Project> {
}
}
@Suppress("DEPRECATION")
class Dependencies(project: Project) {
val desktop = DesktopDependencies
val compiler = CompilerDependencies(project)
@@ -122,7 +123,9 @@ class ComposePlugin : Plugin<Project> {
val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview")
val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended")
val components get() = CommonComponentsDependencies
@Deprecated("Use compose.html", replaceWith = ReplaceWith("html"))
val web: WebDependencies get() = WebDependencies
val html: HtmlDependencies get() = HtmlDependencies
}
object DesktopDependencies {
@@ -163,17 +166,32 @@ class ComposePlugin : Plugin<Project> {
val animatedImage = composeDependency("org.jetbrains.compose.components:components-animatedimage")
}
@Deprecated("Use compose.html")
object WebDependencies {
val core by lazy {
composeDependency("org.jetbrains.compose.web:web-core")
composeDependency("org.jetbrains.compose.html:html-core")
}
val svg by lazy {
composeDependency("org.jetbrains.compose.web:web-svg")
composeDependency("org.jetbrains.compose.html:html-svg")
}
val testUtils by lazy {
composeDependency("org.jetbrains.compose.web:test-utils")
composeDependency("org.jetbrains.compose.html:html-test-utils")
}
}
object HtmlDependencies {
val core by lazy {
composeDependency("org.jetbrains.compose.html:html-core")
}
val svg by lazy {
composeDependency("org.jetbrains.compose.html:html-svg")
}
val testUtils by lazy {
composeDependency("org.jetbrains.compose.html:html-test-utils")
}
}
}

View File

@@ -16,7 +16,7 @@ kotlin {
}
named("jsMain") {
dependencies {
implementation(compose.web.core)
implementation(compose.html.core)
implementation(compose.runtime)
}
}