Created
July 4, 2021 22:50
-
-
Save alexandrepiveteau/1548f0033fa5b6f7d532d49802393f06 to your computer and use it in GitHub Desktop.
Multiplatform Gradle configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
kotlin(Plugins.KotlinJvm) | |
kotlin(Plugins.KotlinSerialization) | |
id("org.jetbrains.compose") version "0.4.0" | |
} | |
repositories { | |
jcenter() | |
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | |
} | |
kotlin { | |
dependencies { | |
implementation(project(":shared")) | |
implementation(compose.desktop.currentOs) | |
// ... | |
} | |
} | |
compose.desktop { | |
application { mainClass = "io.github.alexandrepiveteau.echo.samples.drawing.Main" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { kotlin(Plugins.KotlinJs) } | |
repositories { | |
jcenter() | |
mavenCentral() | |
} | |
dependencies { | |
implementation(kotlin("stdlib-js")) | |
implementation(project(":shared")) | |
// JS-specific dependencies | |
} | |
kotlin { js(IR) { browser { binaries.executable() } } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | |
} | |
dependencies { | |
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.Kotlin}") | |
classpath("org.jetbrains.kotlin:kotlin-serialization:${Versions.KotlinxSerialization}") | |
} | |
} | |
allprojects { | |
repositories { | |
mavenCentral() | |
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | |
maven("https://maven.pkg.jetbrains.space/public/p/ktor/eap") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment