Browse Source

Bump versions (Kotlin, AGP, Gradle) (#5399)

## Release Notes
N/A
pull/5403/head buildHelpers_v0.1.20
Ivan Matkov 4 months ago committed by GitHub
parent
commit
d949b7cc83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      benchmarks/desktop/gradle/wrapper/gradle-wrapper.properties
  2. 4
      benchmarks/intellij/gradle/wrapper/gradle-wrapper.properties
  3. 4
      benchmarks/multiplatform/gradle/wrapper/gradle-wrapper.properties
  4. 8
      benchmarks/showcases/LazyGridImageView/gradle/libs.versions.toml
  5. 3
      benchmarks/showcases/LazyGridImageView/gradle/wrapper/gradle-wrapper.properties
  6. 10
      benchmarks/showcases/LazyGridImageView/nativeAndroidApp/gradle/libs.versions.toml
  7. 5
      benchmarks/showcases/LazyGridImageView/nativeAndroidApp/gradle/wrapper/gradle-wrapper.properties
  8. 4
      ci/build-helpers/gradle/wrapper/gradle-wrapper.properties
  9. 2
      ci/compose-uber-jar/build.gradle.kts
  10. 2
      ci/compose-uber-jar/gradle.properties
  11. 4
      ci/compose-uber-jar/gradle/wrapper/gradle-wrapper.properties
  12. 4
      ci/delete-packages-from-space/gradle/wrapper/gradle-wrapper.properties
  13. 4
      ci/templates/desktop-template/gradle.properties
  14. 4
      ci/templates/desktop-template/gradle/wrapper/gradle-wrapper.properties
  15. 4
      ci/templates/html-library-template/gradle.properties
  16. 4
      ci/templates/html-library-template/gradle/wrapper/gradle-wrapper.properties
  17. 2
      ci/templates/maven-test-project/README.md
  18. 12
      ci/templates/maven-test-project/pom.xml
  19. 6
      ci/templates/multiplatform-template/gradle.properties
  20. 4
      ci/templates/multiplatform-template/gradle/wrapper/gradle-wrapper.properties
  21. 9
      components/build.gradle.kts
  22. 6
      components/gradle.properties
  23. 4
      components/gradle/wrapper/gradle-wrapper.properties
  24. 11
      components/resources/demo/shared/build.gradle.kts
  25. 10
      components/resources/library/build.gradle.kts
  26. 12
      components/ui-tooling-preview/demo/shared/build.gradle.kts
  27. 9
      components/ui-tooling-preview/library/build.gradle.kts
  28. 4
      compose/integrations/composable-test-cases/README.MD
  29. 4
      compose/integrations/composable-test-cases/gradle/libs.versions.toml
  30. 4
      compose/integrations/composable-test-cases/gradle/wrapper/gradle-wrapper.properties
  31. 2
      compose/integrations/compose-with-ktx-serialization/common/build.gradle.kts
  32. 8
      compose/integrations/compose-with-ktx-serialization/gradle.properties
  33. 4
      compose/integrations/compose-with-ktx-serialization/gradle/wrapper/gradle-wrapper.properties
  34. 4
      examples/chat/gradle.properties
  35. 5
      examples/chat/gradle/wrapper/gradle-wrapper.properties
  36. 4
      examples/codeviewer/gradle.properties
  37. 4
      examples/codeviewer/gradle/wrapper/gradle-wrapper.properties
  38. 9
      examples/graphics-2d/gradle.properties
  39. 4
      examples/graphics-2d/gradle/wrapper/gradle-wrapper.properties
  40. 2
      examples/html/compose-bird/gradle.properties
  41. 4
      examples/html/compose-bird/gradle/wrapper/gradle-wrapper.properties
  42. 2
      examples/html/compose-in-js/gradle.properties
  43. 4
      examples/html/compose-in-js/gradle/wrapper/gradle-wrapper.properties
  44. 2
      examples/html/landing/gradle.properties
  45. 4
      examples/html/landing/gradle/wrapper/gradle-wrapper.properties
  46. 2
      examples/html/with-react/gradle.properties
  47. 4
      examples/html/with-react/gradle/wrapper/gradle-wrapper.properties
  48. 4
      examples/imageviewer/gradle.properties
  49. 4
      examples/imageviewer/gradle/wrapper/gradle-wrapper.properties
  50. 2
      examples/interop/ios-compose-in-swiftui/gradle.properties
  51. 4
      examples/interop/ios-compose-in-swiftui/gradle/wrapper/gradle-wrapper.properties
  52. 2
      examples/interop/ios-compose-in-uikit/gradle.properties
  53. 4
      examples/interop/ios-compose-in-uikit/gradle/wrapper/gradle-wrapper.properties
  54. 2
      examples/interop/ios-swiftui-in-compose/gradle.properties
  55. 4
      examples/interop/ios-swiftui-in-compose/gradle/wrapper/gradle-wrapper.properties
  56. 2
      examples/interop/ios-uikit-in-compose/gradle.properties
  57. 4
      examples/interop/ios-uikit-in-compose/gradle/wrapper/gradle-wrapper.properties
  58. 4
      examples/issues/gradle.properties
  59. 4
      examples/issues/gradle/wrapper/gradle-wrapper.properties
  60. 4
      examples/jetsnack/gradle.properties
  61. 2
      examples/jetsnack/gradle/libs.versions.toml
  62. 2
      examples/jetsnack/gradle/wrapper/gradle-wrapper.properties
  63. 17
      examples/nav_cupcake/composeApp/build.gradle.kts
  64. 8
      examples/nav_cupcake/composeApp/src/commonMain/kotlin/org/jetbrains/nav_cupcake/ui/OrderViewModel.kt
  65. 14
      examples/nav_cupcake/gradle/libs.versions.toml
  66. 3
      examples/nav_cupcake/gradle/wrapper/gradle-wrapper.properties
  67. 4
      experimental/cef/gradle/wrapper/gradle-wrapper.properties
  68. 4
      experimental/components/gradle/wrapper/gradle-wrapper.properties
  69. 4
      experimental/lwjgl-integration/gradle/wrapper/gradle-wrapper.properties
  70. 4
      gradle-plugins/build.gradle.kts
  71. 6
      gradle-plugins/compose/src/test/test-projects/misc/oldComposePlugin/build.gradle
  72. 2
      gradle-plugins/gradle.properties
  73. 2
      gradle-plugins/gradle/wrapper/gradle-wrapper.properties
  74. 30
      html/build.gradle.kts
  75. 2
      html/buildSrc/gradle.properties
  76. 4
      html/compose-compiler-integration/main-template/gradle/wrapper/gradle-wrapper.properties
  77. 0
      html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/color-prop.kt
  78. 11
      html/gradle.properties
  79. 4
      html/gradle/wrapper/gradle-wrapper.properties
  80. 4
      idea-plugin/examples/simple-preview-example/gradle/wrapper/gradle-wrapper.properties
  81. 4
      idea-plugin/gradle/wrapper/gradle-wrapper.properties
  82. 2
      instrumented-test/gradle/wrapper/gradle-wrapper.properties
  83. 4
      tooling/gradle/wrapper/gradle-wrapper.properties
  84. 4
      tutorials/checker/gradle/wrapper/gradle-wrapper.properties

4
benchmarks/desktop/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
benchmarks/intellij/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
benchmarks/multiplatform/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

8
benchmarks/showcases/LazyGridImageView/gradle/libs.versions.toml

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
[versions]
agp = "8.8.1"
agp = "8.9.0"
android-compileSdk = "35"
android-minSdk = "24"
android-targetSdk = "35"
@ -8,13 +8,13 @@ androidx-appcompat = "1.7.0" @@ -8,13 +8,13 @@ androidx-appcompat = "1.7.0"
androidx-constraintlayout = "2.2.1"
androidx-core-ktx = "1.15.0"
androidx-espresso-core = "3.6.1"
androidx-lifecycle = "2.8.4"
androidx-lifecycle = "2.9.2"
androidx-material = "1.12.0"
androidx-test-junit = "1.2.1"
coilCompose = "3.1.0"
compose-multiplatform = "1.8.0"
compose-multiplatform = "1.9.0-rc01"
junit = "4.13.2"
kotlin = "2.1.20"
kotlin = "2.2.10"
kotlinx-coroutines = "1.10.1"
[libraries]

3
benchmarks/showcases/LazyGridImageView/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
#Fri Apr 04 18:24:22 EEST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

10
benchmarks/showcases/LazyGridImageView/nativeAndroidApp/gradle/libs.versions.toml

@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
[versions]
agp = "8.8.1"
agp = "8.9.0"
coilCompose = "3.1.0"
kotlin = "2.1.20"
kotlin = "2.2.10"
coreKtx = "1.15.0"
junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"
lifecycleRuntimeKtx = "2.8.7"
lifecycleRuntimeKtx = "2.9.2"
activityCompose = "1.10.1"
compose = "1.8.0"
composeMaterial3 = "1.3.1"
compose = "1.9.0-rc01"
composeMaterial3 = "1.3.2"
[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }

5
benchmarks/showcases/LazyGridImageView/nativeAndroidApp/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
#Thu Apr 03 18:26:40 EEST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
ci/build-helpers/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
ci/compose-uber-jar/build.gradle.kts

@ -3,7 +3,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar @@ -3,7 +3,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "6.0.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
val properties = ComposeUberJarProperties()

2
ci/compose-uber-jar/gradle.properties

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
compose.version=1.8.2
compose.version=1.9.0-rc01
kotlin.code.style=official

4
ci/compose-uber-jar/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
ci/delete-packages-from-space/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
ci/templates/desktop-template/gradle.properties

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
kotlin.version=2.1.20
compose.version=1.8.2
kotlin.version=2.2.10
compose.version=1.9.0-rc01

4
ci/templates/desktop-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
ci/templates/html-library-template/gradle.properties

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
kotlin.version=2.1.20
compose.version=1.8.2
kotlin.version=2.2.10
compose.version=1.9.0-rc01

4
ci/templates/html-library-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
ci/templates/maven-test-project/README.md

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
The purpose of this test project is to check if Compose Multiplatform is resolvable via pom files, which are used by JPS, which is used by IntelliJ
```
./check.sh -Dkotlin.version=2.1.0 -Dcompose.version=1.8.0-alpha02 -Dcompose.material3.version=1.8.0-alpha02
./check.sh -Dkotlin.version=2.2.10 -Dcompose.version=1.9.0-rc01 -Dcompose.material3.version=1.9.0-beta04
```

12
ci/templates/maven-test-project/pom.xml

@ -12,9 +12,9 @@ @@ -12,9 +12,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.code.style>official</kotlin.code.style>
<kotlin.compiler.jvmTarget>11</kotlin.compiler.jvmTarget>
<kotlin.version>2.1.20</kotlin.version>
<compose.version>1.8.2</compose.version>
<compose.material3.version>1.8.2</compose.material3.version>
<kotlin.version>2.1.21</kotlin.version>
<compose.version>1.9.0-rc01</compose.version>
<compose.material3.version>1.9.0-beta04</compose.material3.version>
</properties>
<repositories>
@ -64,16 +64,16 @@ @@ -64,16 +64,16 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.5.3</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.2</version>
<version>3.5.3</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<version>3.5.1</version>
<configuration>
<mainClass>MainKt</mainClass>
</configuration>

6
ci/templates/multiplatform-template/gradle.properties

@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 @@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
kotlin.version=2.1.20
agp.version=8.1.0
compose.version=1.8.2
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.9.0-rc01

4
ci/templates/multiplatform-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

9
components/build.gradle.kts

@ -1,3 +1,6 @@ @@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("multiplatform") apply false
id("com.android.library") apply false
@ -17,8 +20,10 @@ subprojects { @@ -17,8 +20,10 @@ subprojects {
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
tasks.withType<KotlinCompile>() {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
plugins.withId("maven-publish") {

6
components/gradle.properties

@ -7,9 +7,9 @@ org.gradle.configuration-cache=true @@ -7,9 +7,9 @@ org.gradle.configuration-cache=true
android.useAndroidX=true
#Versions
kotlin.version=2.1.0
agp.version=8.2.2
compose.version=1.9.0-alpha02
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.9.0-rc01
deploy.version=9999.0.0-SNAPSHOT
#Compose

4
components/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

11
components/resources/demo/shared/build.gradle.kts

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
plugins {
kotlin("multiplatform")
@ -10,8 +11,10 @@ plugins { @@ -10,8 +11,10 @@ plugins {
kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "11"
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}
@ -48,7 +51,7 @@ kotlin { @@ -48,7 +51,7 @@ kotlin {
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.material3)
implementation("org.jetbrains.compose.material:material-icons-core:1.6.11")
implementation("org.jetbrains.compose.material:material-icons-core:1.7.3")
implementation(project(":resources:library"))
}
desktopMain.dependencies {

10
components/resources/library/build.gradle.kts

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
import kotlinx.validation.ExperimentalBCVApi
import org.jetbrains.compose.ExperimentalComposeLibrary
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("multiplatform")
@ -15,8 +17,10 @@ kotlin { @@ -15,8 +17,10 @@ kotlin {
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "11"
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}
@ -31,7 +35,7 @@ kotlin { @@ -31,7 +35,7 @@ kotlin {
}
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
compilations.getByName("test").compileTaskProvider.configure {
// https://youtrack.jetbrains.com/issue/KT-69014

12
components/ui-tooling-preview/demo/shared/build.gradle.kts

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("multiplatform")
id("com.android.library")
@ -8,8 +10,10 @@ plugins { @@ -8,8 +10,10 @@ plugins {
kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "11"
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}
@ -68,7 +72,3 @@ android { @@ -68,7 +72,3 @@ android {
targetCompatibility = JavaVersion.VERSION_11
}
}
compose.experimental {
web.application {}
}

9
components/ui-tooling-preview/library/build.gradle.kts

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
plugins {
kotlin("multiplatform")
@ -11,8 +12,10 @@ kotlin { @@ -11,8 +12,10 @@ kotlin {
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "11"
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}

4
compose/integrations/composable-test-cases/README.MD

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
## Run:
`./gradlew build -Pkotlin.version=2.1.21`
`./gradlew build -Pkotlin.version=2.2.10`
to build and run the tests,
or
`./gradlew allTests -Pkotlin.version=2.1.21`
`./gradlew allTests -Pkotlin.version=2.2.10`
to only run the tests.
It will build and run the tests for all available targets (depends on a host machine).

4
compose/integrations/composable-test-cases/gradle/libs.versions.toml

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
[versions]
kotlin="2.1.21" # should be provided via `-Pkotlin.version=<kotlin version to test with>`
kotlin="2.2.10" # should be provided via `-Pkotlin.version=<kotlin version to test with>`
kotlinx-coroutines = "1.8.0"
compose = "1.8.1"
compose = "1.9.0-rc01"
[libraries]
kotlinx-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }

4
compose/integrations/composable-test-cases/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
compose/integrations/compose-with-ktx-serialization/common/build.gradle.kts

@ -31,7 +31,7 @@ kotlin { @@ -31,7 +31,7 @@ kotlin {
val ktxSerializationVer = project.property("kotlinx.serializationCore")
implementation(compose.runtime)
api("org.jetbrains.kotlinx:kotlinx-serialization-core:$ktxSerializationVer")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
}
}
val commonTest by getting {

8
compose/integrations/compose-with-ktx-serialization/gradle.properties

@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
kotlin.code.style=official
kotlin.native.enableDependencyPropagation=false
android.useAndroidX=true
kotlin.version=1.8.10
agp.version=7.3.0
compose.version=1.3.1
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.9.0-rc01
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
kotlinx.serializationCore=1.4.1
kotlinx.serializationCore=1.7.3
#empty by default - a default version will be used
compose.kotlinCompilerPluginVersion=

4
compose/integrations/compose-with-ktx-serialization/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
examples/chat/gradle.properties

@ -10,6 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true @@ -10,6 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.1.20
agp.version=8.5.0
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.8.2

5
examples/chat/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
#Thu Oct 17 19:55:35 AMT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
examples/codeviewer/gradle.properties

@ -10,6 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true @@ -10,6 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.1.20
agp.version=8.5.0
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.8.2

4
examples/codeviewer/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

9
examples/graphics-2d/gradle.properties

@ -10,11 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true @@ -10,11 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.1.20
agp.version=8.5.0
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.8.2
# TODO: remove when switching to 1.9.10. See: https://youtrack.jetbrains.com/issue/KT-60852
# usage: ./gradlew :jsApp:jsBrowserRun -Pworkaround.kotlin.js.kt60852=true
# setting it to `true` breaks other targets (see shared/build.gradle.kts), so it should be used to run the web app only.
workaround.kotlin.js.kt60852=false

4
examples/graphics-2d/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/html/compose-bird/gradle.properties

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2
org.gradle.configuration-cache=true
org.gradle.caching=true

4
examples/html/compose-bird/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/html/compose-in-js/gradle.properties

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
kotlin.code.style=official
kotlin.js.webpack.major.version=4
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2
org.gradle.configuration-cache=true
org.gradle.caching=true

4
examples/html/compose-in-js/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/html/landing/gradle.properties

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2
org.gradle.configuration-cache=true
org.gradle.caching=true

4
examples/html/landing/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/html/with-react/gradle.properties

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2
org.gradle.configuration-cache=true
org.gradle.caching=true

4
examples/html/with-react/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
examples/imageviewer/gradle.properties

@ -7,6 +7,6 @@ org.gradle.configuration-cache=true @@ -7,6 +7,6 @@ org.gradle.configuration-cache=true
org.gradle.caching=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
kotlin.version=2.1.20
agp.version=8.5.0
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.8.2

4
examples/imageviewer/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/interop/ios-compose-in-swiftui/gradle.properties

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
kotlin.code.style=official
xcodeproj=./iosApp
org.gradle.jvmargs=-Xmx3g
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2

4
examples/interop/ios-compose-in-swiftui/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/interop/ios-compose-in-uikit/gradle.properties

@ -3,5 +3,5 @@ xcodeproj=./iosApp @@ -3,5 +3,5 @@ xcodeproj=./iosApp
org.gradle.jvmargs=-Xmx3g
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2

4
examples/interop/ios-compose-in-uikit/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/interop/ios-swiftui-in-compose/gradle.properties

@ -3,5 +3,5 @@ xcodeproj=./iosApp @@ -3,5 +3,5 @@ xcodeproj=./iosApp
org.gradle.jvmargs=-Xmx3g
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2

4
examples/interop/ios-swiftui-in-compose/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/interop/ios-uikit-in-compose/gradle.properties

@ -3,5 +3,5 @@ xcodeproj=./iosApp @@ -3,5 +3,5 @@ xcodeproj=./iosApp
org.gradle.jvmargs=-Xmx3g
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.1.20
kotlin.version=2.2.10
compose.version=1.8.2

4
examples/interop/ios-uikit-in-compose/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
examples/issues/gradle.properties

@ -19,6 +19,6 @@ kotlin.code.style=official @@ -19,6 +19,6 @@ kotlin.code.style=official
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
kotlin.version=2.1.20
agp.version=8.5.0
kotlin.version=2.2.10
agp.version=8.9.0
compose.version=1.8.2

4
examples/issues/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
examples/jetsnack/gradle.properties

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx8g
kotlin.code.style=official
android.useAndroidX=true
agp.version=8.5.0
kotlin.version=2.1.20
agp.version=8.9.0
kotlin.version=2.2.10
compose.version=1.8.2

2
examples/jetsnack/gradle/libs.versions.toml

@ -41,7 +41,7 @@ ksp = "1.8.0-1.0.9" @@ -41,7 +41,7 @@ ksp = "1.8.0-1.0.9"
maps-compose = "2.5.3"
material = "1.9.0-beta01"
# @keep
minSdk = "21"
minSdk = "23"
okhttp = "4.10.0"
robolectric = "4.9.2"
rome = "1.18.0"

2
examples/jetsnack/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

17
examples/nav_cupcake/composeApp/build.gradle.kts

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
plugins {
@ -12,7 +13,7 @@ plugins { @@ -12,7 +13,7 @@ plugins {
kotlin {
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = "composeApp"
outputModuleName = "composeApp"
browser {
commonWebpackConfig {
outputFileName = "composeApp.js"
@ -29,8 +30,10 @@ kotlin { @@ -29,8 +30,10 @@ kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "11"
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}
@ -87,7 +90,7 @@ kotlin { @@ -87,7 +90,7 @@ kotlin {
implementation(compose.material3)
implementation(compose.components.resources)
implementation(compose.components.uiToolingPreview)
implementation("org.jetbrains.compose.material:material-icons-core:1.6.11")
implementation("org.jetbrains.compose.material:material-icons-core:1.7.3")
implementation(libs.androidx.lifecycle.runtime.compose)
implementation(libs.androidx.lifecycle.viewmodel.compose)
@ -148,7 +151,3 @@ compose.desktop { @@ -148,7 +151,3 @@ compose.desktop {
}
}
}
compose.experimental {
web.application {}
}

8
examples/nav_cupcake/composeApp/src/commonMain/kotlin/org/jetbrains/nav_cupcake/ui/OrderViewModel.kt

@ -21,7 +21,12 @@ import kotlinx.coroutines.flow.MutableStateFlow @@ -21,7 +21,12 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kotlinx.datetime.*
import kotlinx.datetime.DateTimeUnit
import kotlinx.datetime.TimeZone
import kotlinx.datetime.plus
import kotlinx.datetime.toLocalDateTime
import kotlin.time.Clock
import kotlin.time.ExperimentalTime
/** Price for a single cupcake */
private const val PRICE_PER_CUPCAKE = 2.00
@ -100,6 +105,7 @@ class OrderViewModel : ViewModel() { @@ -100,6 +105,7 @@ class OrderViewModel : ViewModel() {
/**
* Returns a list of date options starting with the current date and the following 3 dates.
*/
@OptIn(ExperimentalTime::class)
private fun pickupOptions(): List<String> {
val dateOptions = mutableListOf<String>()
val now = Clock.System.now()

14
examples/nav_cupcake/gradle/libs.versions.toml

@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
[versions]
agp = "8.5.0"
agp = "8.9.0"
android-compileSdk = "34"
android-minSdk = "24"
android-targetSdk = "34"
androidx-activity = "1.8.2"
androidx-lifecycle = "2.8.0-rc03"
androidx-navigation = "2.7.0-alpha06"
compose-android = "1.6.7"
compose-multiplatform = "1.7.0"
androidx-lifecycle = "2.9.0"
androidx-navigation = "2.9.0-rc01"
compose-android = "1.9.0"
compose-multiplatform = "1.8.2"
junit = "4.13.2"
kotlin = "2.1.0"
kotlinx-datetime = "0.6.0"
kotlin = "2.2.10"
kotlinx-datetime = "0.7.1"
[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }

3
examples/nav_cupcake/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
#Thu Oct 17 19:23:28 AMT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

4
experimental/cef/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
experimental/components/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
experimental/lwjgl-integration/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
gradle-plugins/build.gradle.kts

@ -36,8 +36,8 @@ subprojects { @@ -36,8 +36,8 @@ subprojects {
// must be set to a language version of the kotlin compiler & runtime,
// which is bundled to the oldest supported Gradle
// https://docs.gradle.org/current/userguide/compatibility.html#kotlin
languageVersion.set(KotlinVersion.KOTLIN_1_8)
apiVersion.set(KotlinVersion.KOTLIN_1_8)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
apiVersion.set(KotlinVersion.KOTLIN_2_0)
jvmTarget.set(JvmTarget.JVM_11)
}
}

6
gradle-plugins/compose/src/test/test-projects/misc/oldComposePlugin/build.gradle

@ -25,11 +25,11 @@ kotlin { @@ -25,11 +25,11 @@ kotlin {
android {
namespace = "org.jetbrains.compose.testapp"
compileSdk = 31
compileSdk = 35
defaultConfig {
minSdk = 21
targetSdk = 31
minSdk = 23
targetSdk = 35
}
}

2
gradle-plugins/gradle.properties

@ -8,7 +8,7 @@ kotlin.code.style=official @@ -8,7 +8,7 @@ kotlin.code.style=official
dev.junit.parallel=false
# Default version of Compose Libraries used by Gradle plugin
compose.version=1.9.0-alpha02
compose.version=1.9.0-rc01
# The latest version of Kotlin compatible with compose.tests.compiler.version. Used only in tests/CI.
compose.tests.kotlin.version=2.2.0
# __SUPPORTED_GRADLE_VERSIONS__

2
gradle-plugins/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

30
html/build.gradle.kts

@ -1,8 +1,12 @@ @@ -1,8 +1,12 @@
import jetbrains.compose.web.gradle.SeleniumDriverPlugin
import org.gradle.api.tasks.testing.AbstractTestTask
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.compose.gradle.kotlinKarmaConfig
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.targets
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("multiplatform") apply false
@ -15,7 +19,7 @@ val COMPOSE_WEB_BUILD_WITH_SAMPLES = project.property("compose.web.buildSamples" @@ -15,7 +19,7 @@ val COMPOSE_WEB_BUILD_WITH_SAMPLES = project.property("compose.web.buildSamples"
kotlinKarmaConfig.rootDir = rootProject.rootDir.toString()
apply<jetbrains.compose.web.gradle.SeleniumDriverPlugin>()
apply<SeleniumDriverPlugin>()
fun Project.isSampleProject() = projectDir.parentFile.name == "examples"
@ -35,12 +39,18 @@ subprojects { @@ -35,12 +39,18 @@ subprojects {
if ((project.name != "html-widgets") && (project.name != "html-integration-widgets")) {
afterEvaluate {
if (plugins.hasPlugin("org.jetbrains.kotlin.multiplatform")) {
project.kotlinExtension.targets.forEach { target ->
target.compilations.forEach { compilation ->
compilation.kotlinOptions {
allWarningsAsErrors = false
// see https://kotlinlang.org/docs/opt-in-requirements.html
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
project.extensions.getByType<KotlinMultiplatformExtension>().apply {
targets.configureEach {
compilations.configureEach {
compileTaskProvider.configure {
compilerOptions {
allWarningsAsErrors.set(false)
freeCompilerArgs.addAll(
// see https://kotlinlang.org/docs/opt-in-requirements.html
"-opt-in=kotlin.RequiresOptIn"
)
}
}
}
}
}
@ -50,8 +60,10 @@ subprojects { @@ -50,8 +60,10 @@ subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
pluginManager.withPlugin("maven-publish") {

2
html/buildSrc/gradle.properties

@ -1 +1 @@ @@ -1 +1 @@
kotlin.version=2.1.0
kotlin.version=2.2.10

4
html/compose-compiler-integration/main-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0
html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/color.kt → html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/color-prop.kt

11
html/gradle.properties

@ -1,8 +1,13 @@ @@ -1,8 +1,13 @@
compose.version=1.7.3
#Gradle
org.gradle.jvmargs=-Xmx8g
#Versions
compose.version=1.9.0-rc01
#Compose
compose.web.buildSamples=false
compose.web.tests.integration.withFirefox
compose.web.tests.integration.withFirefox=true
compose.web.tests.skip.benchmarks=false
org.gradle.jvmargs=-Xmx8g
# TODO: figure out why jvmTest (web driver tests) fail with timeout with kotlin 1.9.0
integrationTestsEnabled=false

4
html/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
idea-plugin/examples/simple-preview-example/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
idea-plugin/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
instrumented-test/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

4
tooling/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
tutorials/checker/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

Loading…
Cancel
Save