Igor Demin
4 years ago
committed by
GitHub
14 changed files with 104 additions and 67 deletions
@ -1,16 +1,25 @@
|
||||
import org.jetbrains.compose.compose |
||||
|
||||
plugins { |
||||
kotlin("jvm") |
||||
kotlin("multiplatform") // kotlin("jvm") doesn't work well in IDEA/AndroidStudio (https://github.com/JetBrains/compose-jb/issues/22) |
||||
id("org.jetbrains.compose") |
||||
java |
||||
application |
||||
} |
||||
|
||||
kotlin { |
||||
jvm { |
||||
withJava() |
||||
} |
||||
sourceSets { |
||||
named("jvmMain") { |
||||
dependencies { |
||||
implementation(compose.desktop.currentOs) |
||||
implementation(project(":common")) |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
application { |
||||
mainClassName = "example.imageviewer.MainKt" |
||||
|
@ -1,15 +1 @@
|
||||
buildscript { |
||||
repositories { |
||||
google() |
||||
jcenter() |
||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") |
||||
} |
||||
|
||||
dependencies { |
||||
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-dev97") |
||||
classpath("com.android.tools.build:gradle:4.0.1") |
||||
classpath(kotlin("gradle-plugin", version = "1.4.0")) |
||||
} |
||||
} |
||||
|
||||
include(":common", ":android", ":desktop") |
||||
|
@ -1,16 +1,25 @@
|
||||
import org.jetbrains.compose.compose |
||||
|
||||
plugins { |
||||
kotlin("jvm") |
||||
kotlin("multiplatform") // kotlin("jvm") doesn't work well in IDEA/AndroidStudio (https://github.com/JetBrains/compose-jb/issues/22) |
||||
id("org.jetbrains.compose") |
||||
java |
||||
application |
||||
} |
||||
|
||||
kotlin { |
||||
jvm { |
||||
withJava() |
||||
} |
||||
sourceSets { |
||||
named("jvmMain") { |
||||
dependencies { |
||||
implementation(compose.desktop.currentOs) |
||||
implementation(project(":common")) |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
application { |
||||
mainClassName = "androidx.ui.examples.jetissues.MainKt" |
||||
|
@ -1,15 +1 @@
|
||||
buildscript { |
||||
repositories { |
||||
google() |
||||
jcenter() |
||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") |
||||
} |
||||
|
||||
dependencies { |
||||
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-dev97") |
||||
classpath("com.android.tools.build:gradle:4.0.1") |
||||
classpath(kotlin("gradle-plugin", version = "1.4.0")) |
||||
} |
||||
} |
||||
|
||||
include(":common", ":android", ":desktop") |
||||
|
@ -1,17 +1 @@
|
||||
buildscript { |
||||
val composeVersion = System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.1.0-dev97" |
||||
|
||||
repositories { |
||||
google() |
||||
jcenter() |
||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") |
||||
} |
||||
|
||||
dependencies { |
||||
classpath("org.jetbrains.compose:compose-gradle-plugin:$composeVersion") |
||||
classpath("com.android.tools.build:gradle:4.0.1") |
||||
classpath(kotlin("gradle-plugin", version = "1.4.0")) |
||||
} |
||||
} |
||||
|
||||
include(":common", ":android", ":desktop") |
||||
|
Loading…
Reference in new issue