Files
prometeu-studio/prometeu-studio-ui-javafx-2/build.gradle.kts
T
bquarkz 481c479427
Test / Tests and coverage
Intrepid/Prometeu/Studio/pipeline/head This commit looks good
feat(studio): render structured AI conversations
Add reusable UI2 conversation balloons, tool cards, native Markdown, copy actions and controlled streaming scroll. Preserve typed ACP tool updates and chat lifecycle, add Alt+Enter sending, update specifications and qualify the UI through desktop tests. Include the Pong asset cache.
2026-11-23 19:12:26 +00:00

62 lines
2.0 KiB
Kotlin

plugins {
id("gradle.java-application-conventions")
alias(libs.plugins.javafx)
}
javafx {
version = libs.versions.javafx.get()
modules("javafx.controls", "javafx.swing")
}
application {
mainClass = "p.studio.ui.javafx2.StudioLauncher"
}
// Gradle's unqualified task selector also finds this application's `run` after
// the product's run. Keep the foundation demo opt-in when invoked at the root.
tasks.named<JavaExec>("run") {
onlyIf("the foundation demo was explicitly selected") {
gradle.startParameter.currentDir.toPath().normalize().startsWith(projectDir.toPath().normalize()) ||
gradle.startParameter.taskNames.any { it.removePrefix(":") == "prometeu-studio-ui-javafx-2:run" }
}
}
dependencies {
implementation(project(":prometeu-studio-api"))
implementation(libs.richtextfx)
implementation(libs.commonmark)
}
distributions {
main {
contents {
from("src/main/resources/p/studio/ui/javafx2/fonts") {
include("*-LICENSE.txt")
into("licenses")
}
}
}
}
tasks.register<JavaExec>("gallery") {
group = "application"
description = "Opens the independent Studio component gallery, without a project or backend."
classpath = sourceSets["main"].runtimeClasspath
mainClass = application.mainClass
args("--gallery")
}
tasks.named<Test>("test") { exclude("**/FoundationDesktopTest.class") }
tasks.register<Test>("desktopTest") {
group = "verification"
description = "Qualifies actual JavaFX windows and captures the foundation (requires a macOS desktop)."
testClassesDirs = sourceSets["test"].output.classesDirs
classpath = sourceSets["test"].runtimeClasspath
useJUnitPlatform()
include("**/FoundationDesktopTest.class")
systemProperty("java.awt.headless", "false")
systemProperty("studio.ui2.captureDir", layout.buildDirectory.dir("desktop-captures").get().asFile.absolutePath)
outputs.upToDateWhen { false }
testLogging.showStandardStreams = true
}