-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
86 lines (73 loc) · 2.24 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
80
81
82
83
84
85
86
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.jetbrains.compose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.google.ksp)
alias(libs.plugins.shadow.jar)
}
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://download.eclipse.org/jgit/maven")
}
dependencies {
ksp(libs.koin.ksp)
implementation(libs.koin.core)
implementation(libs.koin.ksp)
implementation(libs.jackson.module.kotlin)
implementation(compose.desktop.currentOs)
implementation(libs.appdirs)
implementation(libs.jackson.annotations)
implementation(libs.jackson.core)
implementation(libs.jackson.databind)
implementation(libs.jgit)
implementation(libs.shadow.jar)
implementation(compose.desktop.currentOs)
implementation(libs.compose.components.resources)
testImplementation(libs.koin.test)
testImplementation(libs.kotest.runner.junit5)
testImplementation(libs.kotest.assertions.core)
}
compose.resources {
publicResClass = true
}
// Use KSP Generated sources
sourceSets.main { java.srcDirs("build/generated/ksp/main/kotlin") }
configurations.all {
resolutionStrategy {
failOnNonReproducibleResolution()
}
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<KotlinCompile> { kotlinOptions.jvmTarget = "17" }
group = "com.codymikol"
version = "1.0"
tasks.jar {
manifest {
attributes["Main-Class"] = "com.codymikol.Main"
attributes["Class-Path"] = configurations
.runtimeClasspath
.get()
.joinToString(separator = " ") { file -> "libs/${file.name}" }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
}
compose.desktop {
application {
mainClass = "com.codymikol.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "gitdown"
packageVersion = "1.0.0"
}
}
}