First Commit

This commit is contained in:
Theo Tappe
2026-05-13 14:19:41 +02:00
commit 1eaa7d0896
89 changed files with 6206 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.composeHotReload) apply false
alias(libs.plugins.composeMultiplatform) apply false
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.kotlinJvm) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.ktor) apply false
alias(libs.plugins.kotlinSerialization) apply false
alias(libs.plugins.jib) apply false
}
rootProject.plugins.withType<YarnPlugin> {
// rootProject.the<YarnRootEnvSpec>().download = false
// rootProject.extensions.configure<YarnRootEnvSpec> {
// download.set(false)
// }
}
project.plugins.withType<NodeJsPlugin> {
// project.the<NodeJsEnvSpec>().download = false
// project.the<NodeJsEnvSpec>().command = "node"
}
tasks.register("dockerBuildAll") {
group = "deployment"
dependsOn(":server:serverDockerBuild")
dependsOn(":composeApp:wasmJsDockerBuild")
}
tasks.register("dockerPushAll") {
group = "deployment"
dependsOn(":server:serverDockerPush")
dependsOn(":composeApp:wasmJsDockerPush")
}
tasks.register("dockerDeployAll") {
group = "deployment"
dependsOn(":server:serverDockerDeploy")
dependsOn(":composeApp:wasmJsDockerDeploy")
}
tasks.register("deployAll") {
group = "deployment"
dependsOn(":dockerDeployAll")
dependsOn(":composeApp:androidDeploy")
}
//tasks.register("checkJsStack") {
// val nodeExt = extensions.findByType<NodeJsRootExtension>()
// val yarnExt = extensions.findByType<YarnRootExtension>()
// doLast {
// // Access the resolved paths from the extensions
// println("--- JS Stack Check ---")
// println("Node executable: ${nodeExt.toString()}")
// println("Yarn executable: ${yarnExt.toString()}")
// }
//}