-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
76 lines (65 loc) · 2.4 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
plugins {
kotlin("jvm") version "1.5.31"
id("org.jetbrains.compose") version "1.0.0-alpha4-build396"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0" apply false
id("org.jetbrains.changelog") version "1.3.0"
id("com.bybutter.sisyphus.project") version "1.3.10"
`java-library`
}
group = "com.bybutter.compose"
version = "1.0.0"
description = "Image Picking tool"
repositories {
mavenLocal()
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(compose.desktop.currentOs) {
exclude("org.jetbrains.compose.material")
}
implementation("com.bybutter.compose:compose-jetbrains-theme:1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "16"
kotlinOptions.freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
)
}
changelog {
version.set(project.version.toString())
groups.set(emptyList())
}
compose.desktop {
application {
mainClass = "io.kanro.pick.MainKt"
nativeDistributions {
targetFormats(org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg, org.jetbrains.compose.desktop.application.dsl.TargetFormat.Msi, org.jetbrains.compose.desktop.application.dsl.TargetFormat.Deb)
packageName = "PickOrNot"
packageVersion = project.version.toString()
macOS {
bundleID = "com.bybutter.toolkit.pickornot"
val appleId = notarization.appleID.orNull ?: System.getenv("NOTARIZATION_APPLEID")
if (appleId != null) {
signing {
sign.set(true)
identity.set("Beijing Muke Technology Co., Ltd.")
keychain.set(System.getenv("NOTARIZATION_KEYCHAIN"))
}
notarization {
appleID.set(appleId)
password.set(System.getenv("NOTARIZATION_PASSWORD") ?: "@keychain:NOTARIZATION_PASSWORD")
}
}
}
}
}
}