-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
75 lines (59 loc) · 1.96 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
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val koinVersion = "3.0.2"
val retrofitVersion = "2.9.0"
val coroutineVersion = "1.5.0"
val ktorVersion = "1.6.0"
val kodeinDbVersion = "0.8.1-beta"
plugins {
kotlin("jvm") version "1.5.10"
id("org.jetbrains.compose") version "0.4.0"
}
group = "org.sentency.desktop"
version = "0.0.1"
repositories {
jcenter()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
}
dependencies {
testImplementation(kotlin("test"))
implementation(compose.desktop.currentOs)
// Ktor
implementation("io.ktor:ktor-client-core:1.6.0")
implementation("io.ktor:ktor-client-cio:1.6.0")
// Core
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
// Koin
implementation("io.insert-koin:koin-core:$koinVersion")
// Retrofit
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.1"))
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
// Kodein-DB
implementation("org.kodein.db:kodein-db-jvm:$kodeinDbVersion")
implementation("org.kodein.db:kodein-db-serializer-kryo-jvm:$kodeinDbVersion")
implementation("org.kodein.db:kodein-leveldb-jni-jvm:$kodeinDbVersion")
// Config
implementation("com.typesafe:config:1.4.1")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "16"
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "Sentency Desktop"
packageVersion = "1.0.0"
macOS {
iconFile.set(project.file("images/logo.icns"))
}
}
}
}