override fun apply()

in hot-reload-gradle-plugin/src/main/kotlin/org/jetbrains/compose/reload/gradle/plugin.kt [16:43]


    override fun apply(target: Project) {
        target.runStage(PluginStage.PluginApplied) {
            /* Configuration which is expected to always happen on plugin apply */
            target.configureComposeHotReloadAttributes()
            target.extensions.create(composeHotReloadExtensionName, ComposeHotReloadExtension::class.java, target)

            /* Defend further configuration against situations where collaborative plugin access is not available */
            if (!target.hasComposePluginAccess()) return
            if (!target.hasKotlinPluginAccess()) return

            /* Launch future configurations */
            target.launch { target.createCompatibilityTasks() }
            target.launch { target.statusService.await() }
            target.launch { target.hotRunTasks.await() }
            target.launch { target.hotAsyncRunTasks.await() }
            target.launch { target.hotArgFileTasks.await() }
            target.launch { target.hotDevCompilations.await() }
            target.launch { target.hotReloadLifecycleTask.await() }
            target.launch { target.hotReloadTasks.await() }
            target.launch { target.hotSnapshotTasks.await() }
            target.configureComposeHotReloadTasks()
            target.configureComposeCompilerArgs()
            target.configureComposeHotReloadModelBuilder()
            target.configureResourceAccessorsGenerationTasks()
        }

        target.withKotlinPlugin(target::onKotlinPluginApplied)
    }