-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (59 loc) · 2.02 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
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
id("org.jetbrains.compose") version "1.1.1"
}
group = "com.bqliang.medhub"
version = "1.0"
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
implementation("ch.qos.logback:logback-classic:1.2.11")
// EasyExcel
implementation("com.alibaba:easyexcel:3.0.5")
// Junit 5
testImplementation(kotlin("test"))
// Compose Desktop
implementation(compose.desktop.currentOs)
// MySQL驱动
implementation("mysql:mysql-connector-java:8.0.28")
// 数据库映射
implementation("org.ktorm:ktorm-core:3.4.1")
// 发送邮件
implementation ("com.mailslurp:mailslurp-client-kotlin:15.7.0")
// 连接池
implementation("org.apache.commons:commons-dbcp2:2.9.0")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
compose.desktop {
application {
mainClass = "MainKt" // 程序入口
//args += listOf("") // arguments for the application's JVM
javaHome = System.getenv("JDK_17") // jpackage request JDK 15+
nativeDistributions {
// 包含的模块
includeAllModules = true
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "MedHub"
packageVersion = "1.9.0"
description = "Medicine sales manager App, fully based on Compose."
copyright = "© 2022 bqliang. All rights reserved."
vendor = "bqliang"
val iconsRoot = project.file("./src/main/resources") //图标目录
windows {
iconFile.set(iconsRoot.resolve("launcher_icon.ico")) //程序图标
menuGroup = "" // adds the application to the specified Start menu group
}
}
}
}