Skip to content

Commit

Permalink
Update to Kotlin 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed May 22, 2024
1 parent e14a324 commit 46f8773
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 20 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: 17
distribution: 'graalvm-community'
set-java-home: false
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ site/
docs/js/gradient.js
docs/js/converter.js
kotlin-js-store/
.kotlin/
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins {
alias(libs.plugins.dokka).apply(false)
alias(libs.plugins.publish).apply(false)
alias(libs.plugins.jetbrainsCompose).apply(false)
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlinBinaryCompatibilityValidator)
}

Expand Down Expand Up @@ -42,9 +43,6 @@ subprojects {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
tasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}

plugins.withType<com.android.build.gradle.BasePlugin>().configureEach {
configure<BaseExtension> {
Expand Down
2 changes: 1 addition & 1 deletion extensions/colormath-ext-jetpack-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import com.vanniktech.maven.publish.tasks.JavadocJar
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension

plugins {
id("com.android.library")
Expand Down Expand Up @@ -38,7 +39,6 @@ kotlin {
}
}

@Suppress("UnstableApiUsage")
android {
namespace = "com.github.ajalt.colormath.extensions.android.composecolor"
compileSdk = 33
Expand Down
15 changes: 8 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin = "1.9.21"
compose = "1.6.0"
compose-plugin = "1.6.0"
kotlin = "2.0.0"
compose = "1.6.10"
compose-plugin = "1.6.10"

[libraries]

Expand All @@ -10,9 +10,9 @@ androidx-annotation = "androidx.annotation:annotation:1.7.0"
compose-ui-graphics = { module = "org.jetbrains.compose.ui:ui-graphics", version.ref = "compose" }

# used in tests
kotest = "io.kotest:kotest-assertions-core:5.8.0"
kotest = "io.kotest:kotest-assertions-core:5.9.0"
junit = "junit:junit:4.13.2"
robolectric = "org.robolectric:robolectric:4.10"
robolectric = "org.robolectric:robolectric:4.12.2"

# used in samples
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
Expand All @@ -21,11 +21,12 @@ compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview"

[plugins]
dokka = "org.jetbrains.dokka:1.9.20"
publish = "com.vanniktech.maven.publish:0.27.0"
publish = "com.vanniktech.maven.publish:0.28.0"
kotlinBinaryCompatibilityValidator = "org.jetbrains.kotlinx.binary-compatibility-validator:0.14.0"

# used in extensions
android-library = "com.android.library:7.4.0"
android-library = "com.android.library:8.4.0"

# used in samples
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
5 changes: 1 addition & 4 deletions website/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
kotlin("multiplatform")
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.compose.compiler)
}

kotlin {
Expand Down Expand Up @@ -37,7 +38,3 @@ kotlin {
}
}
}

compose.experimental {
web.application {}
}

0 comments on commit 46f8773

Please sign in to comment.