From f9c8448768bbe65c9325c1dddc7bcd7497a29233 Mon Sep 17 00:00:00 2001 From: "Oleksandr.Karpovich" Date: Wed, 22 Jan 2025 11:07:07 +0100 Subject: [PATCH] fix compose-html build.gradle.kts for tests --- .../main-template/build.gradle.kts | 8 ++++++-- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../main-template/lib/build.gradle.kts | 9 +++++++-- .../main-template/settings.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/html/compose-compiler-integration/main-template/build.gradle.kts b/html/compose-compiler-integration/main-template/build.gradle.kts index 2b1a1aaf9b1..086a4c8bde1 100644 --- a/html/compose-compiler-integration/main-template/build.gradle.kts +++ b/html/compose-compiler-integration/main-template/build.gradle.kts @@ -1,12 +1,13 @@ plugins { kotlin("multiplatform") id("org.jetbrains.compose") + id("org.jetbrains.kotlin.plugin.compose") } repositories { - mavenLocal() mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") + mavenLocal() } kotlin { @@ -22,8 +23,11 @@ kotlin { implementation(kotlin("stdlib-common")) implementation(compose.runtime) implementation(project(":lib")) - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0-RC") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") } } } } + +tasks.findByName("jsBrowserProductionWebpack")!!.mustRunAfter("jsDevelopmentExecutableCompileSync") +tasks.findByName("jsNodeRun")!!.mustRunAfter("jsProductionExecutableCompileSync") diff --git a/html/compose-compiler-integration/main-template/gradle/wrapper/gradle-wrapper.properties b/html/compose-compiler-integration/main-template/gradle/wrapper/gradle-wrapper.properties index 0f80bbf516c..15de90249f9 100644 --- a/html/compose-compiler-integration/main-template/gradle/wrapper/gradle-wrapper.properties +++ b/html/compose-compiler-integration/main-template/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/html/compose-compiler-integration/main-template/lib/build.gradle.kts b/html/compose-compiler-integration/main-template/lib/build.gradle.kts index ba03f01cccd..c77ac52105d 100644 --- a/html/compose-compiler-integration/main-template/lib/build.gradle.kts +++ b/html/compose-compiler-integration/main-template/lib/build.gradle.kts @@ -1,12 +1,13 @@ plugins { kotlin("multiplatform")// version "1.5.10" id("org.jetbrains.compose")// version (System.getenv("COMPOSE_INTEGRATION_VERSION") ?: "0.0.0-SNASPHOT") + id("org.jetbrains.kotlin.plugin.compose") } repositories { - mavenLocal() mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") + mavenLocal() } kotlin { @@ -21,8 +22,12 @@ kotlin { dependencies { implementation(kotlin("stdlib-common")) implementation(compose.runtime) - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0-RC") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") } } } } + + +tasks.findByName("jsBrowserProductionWebpack")!!.mustRunAfter("jsDevelopmentExecutableCompileSync") +tasks.findByName("jsNodeRun")!!.mustRunAfter("jsProductionExecutableCompileSync") \ No newline at end of file diff --git a/html/compose-compiler-integration/main-template/settings.gradle.kts b/html/compose-compiler-integration/main-template/settings.gradle.kts index 87635f42427..4e0b38db865 100644 --- a/html/compose-compiler-integration/main-template/settings.gradle.kts +++ b/html/compose-compiler-integration/main-template/settings.gradle.kts @@ -1,10 +1,10 @@ pluginManagement { repositories { - mavenLocal() gradlePluginPortal() maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") } + mavenLocal() } resolutionStrategy {