-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
92 lines (72 loc) · 3.2 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
87
88
89
90
91
92
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
group = "com.example"
version = "1.0-SNAPSHOT"
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.aliyun.com/repository/public")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "11"
}
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
// 参考文档:https://stackoverflow.com/questions/70150052/org-jetbrains-skiko-libraryloadexception-cannot-find-libskiko-macos-arm64-dylib/70150484
// windows x64
implementation(compose.desktop.currentOs)
// macOS arm
// implementation(compose.desktop.macos_arm64)
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
implementation("com.squareup.okhttp3:okhttp:4.9.3")
implementation("com.squareup.okhttp3:okhttp-urlconnection:4.9.3")
// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
implementation("org.xerial:sqlite-jdbc:3.41.2.1")
// https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2
implementation("org.apache.commons:commons-dbcp2:2.9.0")
// https://mvnrepository.com/artifact/org.springframework/spring-jdbc
implementation("org.springframework:spring-jdbc:5.3.26")
// https://mvnrepository.com/artifact/org.springframework/spring-beans
implementation("org.springframework:spring-beans:5.3.26")
// https://mvnrepository.com/artifact/org.springframework/spring-core
implementation("org.springframework:spring-core:5.3.26")
// https://mvnrepository.com/artifact/org.springframework/spring-jcl
implementation("org.springframework:spring-jcl:5.3.26")
// https://mvnrepository.com/artifact/org.springframework/spring-tx
implementation("org.springframework:spring-tx:5.3.26")
implementation("com.github.ltttttttttttt:load-the-image:1.0.5")//this
implementation("uk.co.caprica:vlcj:4.7.1")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
}
}
val jvmTest by getting {
dependencies {
implementation("com.squareup.okhttp3:okhttp:4.9.3")
implementation("com.squareup.okhttp3:okhttp-urlconnection:4.9.3")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
}
}
}
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Exe)
packageName = "desktop_01"
packageVersion = "1.0.0"
}
}
}