-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (55 loc) · 2.12 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
val kotlinVersion = "1.9.22"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("org.jetbrains.compose") version "1.6.0"
id("com.diffplug.spotless") version "6.25.0"
}
group = "com.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
}
kotlin { jvmToolchain(17) }
dependencies {
val ktorVersion = "2.3.9"
val kotestVersion = "5.8.1"
val kotlinProcessVersion = "1.4.1"
val kotlinxSerializationVersion = "1.6.3"
val kamelVersion = "0.4.1"
implementation(compose.desktop.currentOs)
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("com.github.pgreze:kotlin-process:$kotlinProcessVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion")
implementation("com.alialbaali.kamel:kamel-image:$kamelVersion")
implementation("br.com.devsrsouza.compose.icons.jetbrains:feather:1.0.0")
implementation("io.github.oshai:kotlin-logging-jvm:6.0.3")
implementation("org.slf4j:slf4j-simple:2.0.12")
implementation("dev.dirs:directories:26")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
}
tasks { test { useJUnitPlatform() } }
compose {
desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "yt-dlp-compose"
packageVersion = "1.0.0"
}
}
}
}
spotless {
kotlin { ktfmt().dropboxStyle() }
kotlinGradle { ktfmt().dropboxStyle() }
}