-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (72 loc) · 1.85 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
buildscript {
repositories {
// TODO: remove after new build is published
mavenLocal().mavenContent {
includeModule("org.jetbrains.compose", "compose-gradle-plugin")
}
google()
jcenter()
maven { url "https://maven.pkg.jetbrains.space/public/p/compose/dev" }
maven {
url 'https://jitpack.io'
}
}
dependencies {
// __LATEST_COMPOSE_RELEASE_VERSION__
classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.0-alpha4-build344")
classpath("com.android.tools.build:gradle:4.0.2")
// __KOTLIN_COMPOSE_VERSION__
classpath(group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: '1.5.30')
classpath 'com.github.takahirom:decomposer:main-SNAPSHOT'
}
}
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.5.30'
}
apply plugin:"org.jetbrains.compose"
apply plugin: 'com.github.takahirom.decomposer'
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
google()
maven { url "https://maven.pkg.jetbrains.space/public/p/compose/dev" }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
kotlin {
jvm {
withJava()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation compose.runtime
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
dependsOn commonMain
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.5.0"
}
}
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
}
}