This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
73 lines (64 loc) · 2.11 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
version = file("version.txt").readText().trim()
group = "com.proguard.proguard-core-visualizer"
plugins {
kotlin("multiplatform") version libs.versions.kotlin.multiplatform
alias(libs.plugins.jetbrains.compose)
alias(libs.plugins.jlleitschuh.ktlint)
alias(libs.plugins.conveyor)
}
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
withJava()
}
jvmToolchain(17)
sourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
api(compose.material3)
api(compose.materialIconsExtended)
implementation(libs.google.gson)
implementation(libs.materialkolor)
implementation(libs.dansoftowner.jthemedetecor)
implementation("com.github.Guardsquare.proguard-core:proguard-core:master-SNAPSHOT")
implementation(libs.proguard.core.android)
implementation(libs.proguard.assembler)
}
}
}
}
dependencies {
// Use the configurations created by the Conveyor plugin to tell Gradle/Conveyor where to find the artifacts for each platform.
linuxAmd64(compose.desktop.linux_x64)
macAmd64(compose.desktop.macos_x64)
macAarch64(compose.desktop.macos_arm64)
windowsAmd64(compose.desktop.windows_x64)
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
vendor = "GuardSquare"
description = " A Compose Multiplatform Desktop application for visualizing the ProGuardCORE jbc evaluation "
}
}
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set(libs.versions.ktlint)
verbose.set(true)
outputToConsole.set(true)
ignoreFailures.set(true)
}
configurations.all {
// Work around temporary Compose bugs.
// https://github.com/JetBrains/compose-jb/issues/1404#issuecomment-1146894731
attributes {
attribute(Attribute.of("ui", String::class.java), "awt")
}
}