Skip to content

Commit

Permalink
Upgrading to Kotlin 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet committed May 24, 2024
1 parent 057643f commit 1ac0bac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 21
- name: Install dependencies and run tests
run: ./gradlew jvmTest koverXmlReport
- name: Upload coverage to Codecov
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.gradle
.kotlin
.idea
.fleet
build/
target/
!gradle/wrapper/gradle-wrapper.jar
Expand Down Expand Up @@ -45,4 +47,4 @@ bin/
.DS_Store

### JS ###
yarn.lock
yarn.lock
20 changes: 6 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
plugins {
kotlin("multiplatform") version "1.9.20"
kotlin("multiplatform") version "2.0.0"
id("convention.publication")
id("org.jetbrains.kotlinx.kover") version "0.7.4"
id("com.google.devtools.ksp") version "1.9.20-1.0.13"
id("org.jetbrains.kotlinx.kover") version "0.8.0"
id("com.google.devtools.ksp") version "2.0.0-1.0.21"
id("dev.petuska.npm.publish") version "3.4.1"
}

group = "me.nathanfallet.makth"
version = "1.2.5"
version = "1.2.6"

repositories {
mavenCentral()
Expand Down Expand Up @@ -38,8 +38,8 @@ kotlin {
watchosDeviceArm64()

// jvm & js
jvmToolchain(21)
jvm {
jvmToolchain(19)
withJava()
testRuns.named("test") {
executionTask.configure {
Expand All @@ -63,7 +63,7 @@ kotlin {
}
val commonMain by getting {
dependencies {
api("me.nathanfallet.usecases:usecases:1.5.6")
api("me.nathanfallet.usecases:usecases:1.6.1")
}
}
val commonTest by getting {
Expand All @@ -80,14 +80,6 @@ kotlin {
}
}

dependencies {
configurations
.filter { it.name.startsWith("ksp") && it.name.contains("Test") }
.forEach {
add(it.name, "io.mockative:mockative-processor:2.0.1")
}
}

npmPublish {
readme.set(file("README.md"))
registries {
Expand Down
4 changes: 2 additions & 2 deletions docs/getstarted/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Add dependency to your `build.gradle(.kts)` or `pom.xml`:

```kotlin
api("me.nathanfallet.makth:makth:1.2.5")
api("me.nathanfallet.makth:makth:1.2.6")
```

```xml

<dependency>
<groupId>me.nathanfallet.makth</groupId>
<artifactId>makth-jvm</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</dependency>
```

Expand Down

0 comments on commit 1ac0bac

Please sign in to comment.