Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .run/Samples_Counter_ Main.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
<option name="Gradle.BeforeRunTask" enabled="true" tasks="publishLocally" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
</method>
</configuration>
</component>
</component>
2 changes: 1 addition & 1 deletion Contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dependencyResolutionManagement {
5. In your local project, update the version of `compose-hot-reload` to whatever you set in step 1:

```
id("org.jetbrains.compose-hot-reload") version "1.0.0-DEBUG"
id("org.jetbrains.compose.hot-reload") version "1.0.0-DEBUG"
```

6. Run project as usual.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ plugins {
kotlin("multiplatform") version "2.1.20-Beta2" // <- Use Kotlin 2.1.20-Beta2 or higher!
kotlin("plugin.compose") version "2.1.20-Beta2" // <- Use Compose Compiler Plugin 2.1.20-Beta2 or higher!
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload") version "1.0.0-dev-39" // <- add this additionally
id("org.jetbrains.compose.hot-reload") version "1.0.0-dev-40" // <- add this additionally
}
```

Expand Down
5 changes: 4 additions & 1 deletion buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ plugins.withType<MavenPublishPlugin>().all {
}

publications.withType<MavenPublication>().configureEach {
this.signPublicationIfKeyPresent()
signPublicationIfKeyPresent()

artifactId = project.name.removePrefix("hot-reload-")

pom {
name = project.name
description = "Compose Hot Reload implementation"
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
############
# Version used for publications
# Will be bumped only right before release
version=1.0.0-dev-39
version=1.0.0-dev-40
# Version used to bootstrap the repo
# Mostly the same as the 'version'.
bootstrap.version=1.0.0-dev-39
bootstrap.version=1.0.0-dev-40
############
# Gradle
############
Expand Down
2 changes: 1 addition & 1 deletion hot-reload-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks.withType<Test>().configureEach {

gradlePlugin {
plugins.create("hot-reload") {
id = "org.jetbrains.compose-hot-reload"
id = "org.jetbrains.compose.hot-reload"
implementationClass = "org.jetbrains.compose.reload.ComposeHotReloadPlugin"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ internal val Project.composeHotReloadDevToolsConfiguration: Configuration
)

configuration.dependencies.add(
project.dependencies.create("org.jetbrains.compose:hot-reload-devtools:$HOT_RELOAD_VERSION")
project.dependencies.create("org.jetbrains.compose.hot-reload:devtools:$HOT_RELOAD_VERSION")
)

project.withComposePlugin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal fun Project.setupComposeHotReloadRuntimeDependency() {
*/
kotlinMultiplatformOrNull?.apply {
sourceSets.commonMain.dependencies {
implementation("org.jetbrains.compose:hot-reload-runtime-api:$HOT_RELOAD_VERSION")
implementation("org.jetbrains.compose.hot-reload:runtime-api:$HOT_RELOAD_VERSION")
}
}

Expand All @@ -26,7 +26,7 @@ internal fun Project.setupComposeHotReloadRuntimeDependency() {
kotlinJvmOrNull?.apply {
val compilation = target.compilations.getByName("main")
compilation.defaultSourceSet.dependencies {
implementation("org.jetbrains.compose:hot-reload-runtime-api:$HOT_RELOAD_VERSION")
implementation("org.jetbrains.compose.hot-reload:runtime-api:$HOT_RELOAD_VERSION")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class RecompilerPropertiesTest {


project.plugins.apply("org.jetbrains.kotlin.multiplatform")
project.plugins.apply("org.jetbrains.compose-hot-reload")
project.plugins.apply("org.jetbrains.compose.hot-reload")
project.kotlinMultiplatformOrNull?.jvm()

val hotRun = project.tasks.create<ComposeHotRun>("runHot")
Expand All @@ -44,7 +44,7 @@ class RecompilerPropertiesTest {


subproject.plugins.apply("org.jetbrains.kotlin.multiplatform")
subproject.plugins.apply("org.jetbrains.compose-hot-reload")
subproject.plugins.apply("org.jetbrains.compose.hot-reload")
subproject.kotlinMultiplatformOrNull?.jvm()

val hotRun = subproject.tasks.create<ComposeHotRun>("runHot")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ class RunClasspathTest {
}

private val hotReloadDependencies: Array<FileMatcher> = arrayOf(
PathRegex(".*/hot-reload-agent-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*/hot-reload-analysis-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*/hot-reload-core-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*/hot-reload-orchestration-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*/hot-reload-runtime-api-jvm-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*/hot-reload-runtime-jvm-$HOT_RELOAD_VERSION-dev.jar"),
PathRegex(".*hot-reload/.*/agent-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*hot-reload/.*/analysis-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*hot-reload/.*/core-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*hot-reload/.*/orchestration-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*hot-reload/.*runtime-api-jvm-$HOT_RELOAD_VERSION.jar"),
PathRegex(".*hot-reload/.*/runtime-jvm-$HOT_RELOAD_VERSION-dev.jar"),
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ val Project.composeHotReloadAgentConfiguration: Configuration
configuration.isCanBeResolved = true

configuration.dependencies.add(
project.dependencies.create("org.jetbrains.compose:hot-reload-agent:$HOT_RELOAD_VERSION")
project.dependencies.create("org.jetbrains.compose.hot-reload:agent:$HOT_RELOAD_VERSION")
)
}
}
Expand All @@ -31,7 +31,8 @@ val Project.composeHotReloadAgentConfiguration: Configuration
fun Project.composeHotReloadAgentJar(): FileCollection {
return composeHotReloadAgentConfiguration.incoming.artifactView { view ->
view.componentFilter { element ->
element is ModuleComponentIdentifier && element.group == "org.jetbrains.compose" && element.module == "hot-reload-agent"
element is ModuleComponentIdentifier &&
element.group == "org.jetbrains.compose.hot-reload" && element.module == "agent"
}
}.files
}
Expand Down
2 changes: 1 addition & 1 deletion hot-reload-runtime-api/api/hot-reload-runtime-api.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - Show manifest properties: true
// - Show declarations: true

// Library unique name: <org.jetbrains.compose:hot-reload-runtime-api>
// Library unique name: <org.jetbrains.compose.hot-reload:hot-reload-runtime-api>
open annotation class org.jetbrains.compose.reload/DelicateHotReloadApi : kotlin/Annotation { // org.jetbrains.compose.reload/DelicateHotReloadApi|null[0]
constructor <init>() // org.jetbrains.compose.reload/DelicateHotReloadApi.<init>|<init>(){}[0]
}
Expand Down
8 changes: 8 additions & 0 deletions hot-reload-runtime-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,11 @@ android {
this.targetCompatibility = JavaVersion.VERSION_11
}
}

publishing {
publications.withType<MavenPublication>().configureEach {
afterEvaluate {
artifactId = artifactId.removePrefix("hot-reload-")
}
}
}
2 changes: 1 addition & 1 deletion hot-reload-runtime-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The 'apiCheck' task will be configured to fail if this api dump does not match t
*/
val devApiBuild = tasks.register<KotlinApiBuildTask>("devApiBuild") {
inputClassesDirs = kotlin.target.compilations["dev"].output.classesDirs
outputApiFile = layout.buildDirectory.file("api/hot-reload-runtime-jvm-dev.api")
outputApiFile = layout.buildDirectory.file("api/runtime-jvm-dev.api")
runtimeClasspath = project.files({ tasks.apiBuild.get().runtimeClasspath })
nonPublicMarkers.add("org.jetbrains.compose.reload.InternalHotReloadApi")
}
Expand Down
2 changes: 1 addition & 1 deletion hot-reload-test/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ dependencies {

publishing {
publications.withType<MavenPublication>().configureEach {
artifactId = "hot-reload-test-core"
artifactId = "test-core"
}
}
4 changes: 2 additions & 2 deletions hot-reload-test/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ plugins {

publishing {
publications.withType<MavenPublication>().configureEach {
this.artifactId = "hot-reload-test-gradle-plugin"
this.artifactId = "test-gradle-plugin"
}
}

gradlePlugin {
plugins.create("hot-reload-test") {
id = "org.jetbrains.compose-hot-reload-test"
id = "org.jetbrains.compose.hot-reload.test"
implementationClass = "org.jetbrains.compose.reload.test.HotReloadTestPlugin"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ internal fun Project.configureGradleTestTasks() {

private fun registerHotReloadFunctionalTestTask(compilation: KotlinCompilation<*>): TaskProvider<HotReloadFunctionalTestTask> {
compilation.defaultSourceSet.dependencies {
implementation("org.jetbrains.compose:hot-reload-test-gradle:${HOT_RELOAD_VERSION}")
implementation("org.jetbrains.compose.hot-reload:test-gradle:${HOT_RELOAD_VERSION}")
}

val task = compilation.project.tasks.register<HotReloadFunctionalTestTask>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ private fun KotlinTarget.configureDefaultHotReloadTestTask() {
compilation.associateWith(main)

compilation.defaultSourceSet.dependencies {
implementation("org.jetbrains.compose:hot-reload-test:${HOT_RELOAD_VERSION}")
implementation("org.jetbrains.compose:hot-reload-runtime-jvm:${HOT_RELOAD_VERSION}:dev")
implementation("org.jetbrains.compose.hot-reload:test:${HOT_RELOAD_VERSION}")
implementation("org.jetbrains.compose.hot-reload:runtime-jvm:${HOT_RELOAD_VERSION}:dev")
project.withComposePlugin {
implementation(project.extensions.getByType<ComposeExtension>().dependencies.desktop.currentOs)
}
Expand Down
2 changes: 1 addition & 1 deletion hot-reload-test/gradle-testFixtures/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ dependencies {

publishing {
publications.withType<MavenPublication>().configureEach {
artifactId = "hot-reload-test-gradle"
artifactId = "test-gradle"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ internal class DefaultBuildGradleKts : BuildGradleKtsExtension {
kotlin("{{kotlin.plugin}}")
kotlin("plugin.compose")
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload")
id("org.jetbrains.compose.hot-reload")
{{if $androidEnabledKey}}
id("com.android.application")
{{/if}}
Expand All @@ -167,7 +167,7 @@ internal class DefaultBuildGradleKts : BuildGradleKtsExtension {

override fun jvmMainDependencies(context: ExtensionContext): String? = """
implementation(compose.desktop.currentOs)
implementation("org.jetbrains.compose:hot-reload-test:$HOT_RELOAD_VERSION")
implementation("org.jetbrains.compose.hot-reload:test:$HOT_RELOAD_VERSION")
""".trimIndent()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal class DefaultSettingsGradleKts : SettingsGradleKtsExtension {
kotlin("jvm") version "$kotlinVersion"
kotlin("plugin.compose") version "$kotlinVersion"
id("org.jetbrains.compose") version "$composeVersion"
id("org.jetbrains.compose-hot-reload") version "$HOT_RELOAD_VERSION"
id("org.jetbrains.compose.hot-reload") version "$HOT_RELOAD_VERSION"
id("com.android.application") version "{{androidVersion}}"
""".trimIndent().asTemplateOrThrow().renderOrThrow("androidVersion" to androidVersion)
}
Expand All @@ -106,7 +106,7 @@ internal class DefaultSettingsGradleKts : SettingsGradleKtsExtension {
return """
maven("https://packages.jetbrains.team/maven/p/firework/dev") {
mavenContent {
includeModuleByRegex("org.jetbrains.compose", "hot-reload.*")
includeGroupAndSubgroups("org.jetbrains.compose.hot-reload")
}
}

Expand Down Expand Up @@ -137,7 +137,7 @@ internal class DefaultSettingsGradleKts : SettingsGradleKtsExtension {
return """
maven("https://packages.jetbrains.team/maven/p/firework/dev") {
mavenContent {
includeModuleByRegex("org.jetbrains.compose", "hot-reload.*")
includeGroupAndSubgroups("org.jetbrains.compose.hot-reload")
}
}

Expand Down
6 changes: 3 additions & 3 deletions hot-reload-test/sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ plugins {
kotlin("multiplatform")
kotlin("plugin.compose")
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload")
id("org.jetbrains.compose-hot-reload-test")
id("org.jetbrains.compose.hot-reload")
id("org.jetbrains.compose.hot-reload.test")
}

kotlin {
jvm()

sourceSets.jvmMain.dependencies {
implementation("org.jetbrains.compose:hot-reload-runtime-api:1.0.0-dev-39"
implementation("org.jetbrains.compose.hot-reload:runtime-api:1.0.0-dev-40")
implementation(compose.runtime)
}

Expand Down
4 changes: 2 additions & 2 deletions hot-reload-test/sample/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pluginManagement {
plugins {
id("org.jetbrains.compose-hot-reload") version "1.0.0-dev-39"
id("org.jetbrains.compose-hot-reload-test") version "1.0.0-dev-39"
id("org.jetbrains.compose.hot-reload") version "1.0.0-dev-40"
id("org.jetbrains.compose.hot-reload.test") version "1.0.0-dev-40"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.sp
import org.jetbrains.compose.hot_reload_test.generated.resources.Res
import org.jetbrains.compose.hot_reload_test.generated.resources.Roboto_Medium
import org.jetbrains.compose.hot_reload.hot_reload_test.generated.resources.Res
import org.jetbrains.compose.hot_reload.hot_reload_test.generated.resources.Roboto_Medium
import org.jetbrains.compose.resources.Font

/**
Expand Down
6 changes: 3 additions & 3 deletions samples/bytecode-analyzer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
kotlin("multiplatform")
kotlin("plugin.compose")
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload")
id("org.jetbrains.compose.hot-reload")
}

kotlin {
Expand All @@ -16,8 +16,8 @@ kotlin {
}

sourceSets.commonMain.dependencies {
implementation("org.jetbrains.compose:hot-reload-core:1.0.0-dev-39")
implementation("org.jetbrains.compose:hot-reload-analysis:1.0.0-dev-39")
implementation("org.jetbrains.compose.hot-reload:core:1.0.0-dev-40")
implementation("org.jetbrains.compose.hot-reload:analysis:1.0.0-dev-40")

implementation("io.sellmair:evas:1.2.0")
implementation("io.sellmair:evas-compose:1.2.0")
Expand Down
2 changes: 1 addition & 1 deletion samples/bytecode-analyzer/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
plugins {
id("org.jetbrains.compose-hot-reload") version "1.0.0-dev-39"
id("org.jetbrains.compose.hot-reload") version "1.0.0-dev-40"
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion samples/counter/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
kotlin("multiplatform")
kotlin("plugin.compose")
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload")
id("org.jetbrains.compose.hot-reload")
}

composeCompiler {
Expand Down
4 changes: 2 additions & 2 deletions samples/counter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ plugins {
kotlin("multiplatform") apply false
kotlin("plugin.compose") apply false
id("org.jetbrains.compose") apply false
id("org.jetbrains.compose-hot-reload") apply false
}
id("org.jetbrains.compose.hot-reload") apply false
}
2 changes: 1 addition & 1 deletion samples/counter/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
plugins {
id("org.jetbrains.compose-hot-reload") version "1.0.0-dev-39"
id("org.jetbrains.compose.hot-reload") version "1.0.0-dev-40"
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions samples/counter/widgets/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
kotlin("multiplatform")
kotlin("plugin.compose")
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload")
id("org.jetbrains.compose.hot-reload")
}

composeCompiler {
Expand All @@ -18,7 +18,7 @@ kotlin {
sourceSets.jvmMain.dependencies {
implementation("io.sellmair:evas:1.2.0")
implementation("io.sellmair:evas-compose:1.2.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
implementation(compose.desktop.currentOs)
implementation(compose.foundation)
implementation(compose.material3)
Expand Down
Loading
Loading