-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
79 lines (72 loc) · 1.41 KB
/
build.gradle.kts
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
79
plugins {
kotlin("multiplatform") version "1.7.20"
id("org.jetbrains.compose") version "1.2.2"
`java-library`
`maven-publish`
}
val groupString = "com.github.KamilKurde"
val versionString = "0.4.0"
val artifactString = "cdalf"
group = groupString
version = versionString
java {
withSourcesJar()
withJavadocJar()
}
publishing.publications.forEach { it ->
if (it is MavenPublication) {
it.pom {
description.set("Compose Desktop Android-like Framework")
url.set("https://github.com/KamilKurde/$artifactString")
scm {
url.set("https://github.com/KamilKurde/$artifactString")
}
issueManagement {
url.set("https://github.com/KamilKurde/$artifactString/issues")
}
developers {
developer {
id.set("KamilKurde")
name.set("Kamil Bąk")
url.set("https://github.com/KamilKurde")
}
}
}
}
}
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
withJava()
}
js(IR) {
browser {
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
api(compose.runtime)
}
}
val jvmMain by getting {
dependencies {
api(compose.desktop.common)
api(compose.material)
}
}
val jsMain by getting {
dependencies {
api(compose.web.core)
}
}
}
}