Launch the JavaFX 2 project shell on Java 25 with an interactive viewport, managed Play lifecycle and project mutation guards. Preserve headless/MCP and save compatibility, and qualify exact runtime executable bundles. Separate unit JaCoCo gates from opt-in integration suites and use the internal Pong fixture for the headless visual pilot. Move maintenance and native conformance tools into tooling; retain the VS Code extension and update current navigation links. Validation: tooling make verify passed, including 1064 Studio unit tests, JaCoCo thresholds and 22 headless integration tests.
49 lines
1.5 KiB
Kotlin
49 lines
1.5 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"
|
|
}
|
|
|
|
dependencies { implementation(project(":prometeu-studio-api")) }
|
|
|
|
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
|
|
}
|