Skip to content

Commit

Permalink
build(deps): modelix.core -> 9.1.1, kotlin -> 2.1.0-Beta2
Browse files Browse the repository at this point in the history
Kotlin 2.0.21, which is used by modelix.core 9.1.1 seems to be buggy.
Kotlin 2.1.0 fixes that.
  • Loading branch information
slisson committed Oct 23, 2024
1 parent 4fc5df3 commit 858bb91
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 10 deletions.
16 changes: 14 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ plugins {
`maven-publish`
id("com.palantir.git-version") version "3.1.0"
id("com.dorongold.task-tree") version "4.0.0"
alias(coreLibs.plugins.kotlin.multiplatform) apply false
alias(coreLibs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.serialization) apply false
id("org.jetbrains.intellij") version "1.17.4" apply false
alias(libs.plugins.npm.publish) apply false
}

group = "org.modelix"
Expand Down Expand Up @@ -136,3 +137,14 @@ rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlu
}

copyMps()

// make all 'packJsPackage' tasks depend on all 'kotlinNodeJsSetup' tasks, because gradle complained about this being missing
tasks.register("setupNodeEverywhere") {
dependsOn(":kernelf-apigen:kotlinNodeJsSetup")
dependsOn(":kernelf-editor:kotlinNodeJsSetup")
dependsOn(":parser:kotlinNodeJsSetup")
dependsOn(":projectional-editor:kotlinNodeJsSetup")
dependsOn(":projectional-editor-ssr-client:kotlinNodeJsSetup")
dependsOn(":projectional-editor-ssr-client-lib:kotlinNodeJsSetup")
dependsOn(":projectional-editor-ssr-common:kotlinNodeJsSetup")
}
6 changes: 5 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
modelix-model-api-gen = { id = "org.modelix.model-api-gen", version.ref = "modelixCore" }
npm-publish = { id = "dev.petuska.npm.publish", version = "3.4.2" }
modelix-mps-buildtools = { id = "org.modelix.mps.build-tools", version.ref = "modelixBuildtools" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

[versions]
modelixCore = "8.16.1"
modelixCore = "9.1.1"
modelixBuildtools="1.7.3"
kotlin = "2.1.0-Beta2"

[libraries]
modelix-model-api = { group = "org.modelix", name = "model-api", version.ref = "modelixCore" }
Expand Down
2 changes: 2 additions & 0 deletions kernelf-editor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,5 @@ tasks.named("packJsPackage") {
.copyTo(packagesDir.resolve("modelix-kernelf-editor.tgz"), overwrite = true)
}
}

tasks.named("packJsPackage") { dependsOn(":setupNodeEverywhere") }
2 changes: 1 addition & 1 deletion parser/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform")
alias(coreLibs.plugins.kotlin.serialization)
kotlin("plugin.serialization")
`maven-publish`
}

Expand Down
6 changes: 4 additions & 2 deletions projectional-editor-ssr-client-lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import dev.petuska.npm.publish.task.NpmPackTask

plugins {
alias(coreLibs.plugins.kotlin.multiplatform)
kotlin("multiplatform")
`maven-publish`
alias(coreLibs.plugins.npm.publish)
alias(libs.plugins.npm.publish)
}

kotlin {
Expand Down Expand Up @@ -70,3 +70,5 @@ tasks.register("packageWithoutVersion", Copy::class.java) {
from(tasks.named("packJsPackage", NpmPackTask::class.java).map { it.outputFile })
into(project.layout.buildDirectory.dir("packages")).rename { "${project.name}.tgz" }
}

tasks.named("packJsPackage") { dependsOn(":setupNodeEverywhere") }
2 changes: 1 addition & 1 deletion projectional-editor-ssr-client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
alias(coreLibs.plugins.kotlin.multiplatform)
kotlin("multiplatform")
`maven-publish`
}

Expand Down
2 changes: 1 addition & 1 deletion projectional-editor-ssr-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform")
alias(coreLibs.plugins.kotlin.serialization)
kotlin("plugin.serialization")
`maven-publish`
}

Expand Down
2 changes: 1 addition & 1 deletion projectional-editor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform")
alias(coreLibs.plugins.kotlin.serialization)
kotlin("plugin.serialization")
`maven-publish`
}

Expand Down
2 changes: 1 addition & 1 deletion react-ssr-server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm")
alias(coreLibs.plugins.kotlin.serialization)
kotlin("plugin.serialization")
`maven-publish`
}

Expand Down

0 comments on commit 858bb91

Please sign in to comment.