Alexey Tsvetkov
4 years ago
committed by
Alexey Tsvetkov
6 changed files with 81 additions and 5 deletions
@ -0,0 +1,34 @@ |
|||||||
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat |
||||||
|
|
||||||
|
plugins { |
||||||
|
id "org.jetbrains.kotlin.jvm" |
||||||
|
id "org.jetbrains.compose" |
||||||
|
} |
||||||
|
|
||||||
|
repositories { |
||||||
|
google() |
||||||
|
mavenCentral() |
||||||
|
jcenter() |
||||||
|
maven { |
||||||
|
url "https://maven.pkg.jetbrains.space/public/p/compose/dev" |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
dependencies { |
||||||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib" |
||||||
|
implementation compose.desktop.currentOs |
||||||
|
} |
||||||
|
|
||||||
|
compose.desktop { |
||||||
|
application { |
||||||
|
mainClass = "MainKt" |
||||||
|
nativeDistributions { |
||||||
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) |
||||||
|
packageVersion = "1.0.0" |
||||||
|
packageName = "Test Package" |
||||||
|
|
||||||
|
args("Value 1!", "Value 2!") |
||||||
|
jvmArgs("-Dcompose.test.arg.value=Value 3!") |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
pluginManagement { |
||||||
|
plugins { |
||||||
|
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION_PLACEHOLDER' |
||||||
|
id 'org.jetbrains.compose' version 'COMPOSE_VERSION_PLACEHOLDER' |
||||||
|
} |
||||||
|
repositories { |
||||||
|
mavenLocal() |
||||||
|
gradlePluginPortal() |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
fun main(args: Array<String>) { |
||||||
|
println("Running test options with spaces!") |
||||||
|
for ((i, arg) in args.withIndex()) { |
||||||
|
println("Arg #${i + 1}=$arg") |
||||||
|
} |
||||||
|
println("JVM system property arg=${java.lang.System.getProperty("compose.test.arg.value")}") |
||||||
|
} |
Loading…
Reference in new issue