Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ abstract class ComposePlugin : Plugin<Project> {

@Suppress("DEPRECATION")
class Dependencies(project: Project) {
@Deprecated("Specify dependency directly")
val desktop = DesktopDependencies
@Deprecated("Specify dependency directly", replaceWith = ReplaceWith("\"org.jetbrains.compose.animation:animation:${ComposeBuildConfig.composeVersion}\""))
val animation get() = composeDependency("org.jetbrains.compose.animation:animation")
Expand Down Expand Up @@ -132,6 +133,7 @@ abstract class ComposePlugin : Plugin<Project> {
@Deprecated("Specify dependency directly", replaceWith = ReplaceWith("\"org.jetbrains.compose.ui:ui-test-junit4:${ComposeBuildConfig.composeVersion}\""))
val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")

@Deprecated("Specify dependency directly", replaceWith = ReplaceWith("\"org.jetbrains.compose.desktop:desktop:${ComposeBuildConfig.composeVersion}\""))
Comment thread
kropp marked this conversation as resolved.
val currentOs by lazy {
composeDependency("org.jetbrains.compose.desktop:desktop-jvm-${currentTarget.id}")
}
Expand Down Expand Up @@ -193,11 +195,14 @@ abstract class ComposePlugin : Plugin<Project> {
}
}

@Deprecated("Compose Multiplatform releases are published to Maven Central")
fun RepositoryHandler.jetbrainsCompose(): MavenArtifactRepository =
maven { repo -> repo.setUrl("https://packages.jetbrains.team/maven/p/cmp/dev") }

@Deprecated("Specify dependency directly")
fun KotlinDependencyHandler.compose(groupWithArtifact: String) = composeDependency(groupWithArtifact)

@Deprecated("Specify dependency directly")
fun DependencyHandler.compose(groupWithArtifact: String) = composeDependency(groupWithArtifact)

private fun composeDependency(groupWithArtifact: String) = "$groupWithArtifact:$composeVersion"
Expand Down
Loading