Establish buildable modules and shared host-service boundaries
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
|
||||
plugins {
|
||||
java
|
||||
id("org.jetbrains.intellij.platform") version "2.20.1"
|
||||
}
|
||||
group = "de.neitzel.fxdesigner"
|
||||
version = "0.1.0-SNAPSHOT"
|
||||
repositories {
|
||||
mavenLocal { content { includeGroup("de.neitzel.fxdesigner") } }
|
||||
mavenCentral()
|
||||
intellijPlatform { defaultRepositories() }
|
||||
}
|
||||
java { sourceCompatibility = JavaVersion.VERSION_25; targetCompatibility = JavaVersion.VERSION_25 }
|
||||
tasks.withType<JavaCompile>().configureEach { options.release.set(25) }
|
||||
val fxPlatform = if (System.getProperty("os.arch") == "aarch64") "mac-aarch64" else "mac"
|
||||
dependencies {
|
||||
implementation("de.neitzel.fxdesigner:designer-kit-ui:0.1.0-SNAPSHOT")
|
||||
intellijPlatform {
|
||||
local(providers.gradleProperty("ideaHome").orElse(providers.environmentVariable("IDEA_HOME")))
|
||||
testFramework(TestFrameworkType.Platform)
|
||||
}
|
||||
// Maven platform profiles are not selected by Gradle: include the qualified macOS natives explicitly.
|
||||
listOf("base", "controls", "fxml", "graphics", "media", "swing", "web").forEach {
|
||||
runtimeOnly("org.openjfx:javafx-$it:26:$fxPlatform")
|
||||
}
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
}
|
||||
intellijPlatform {
|
||||
pluginConfiguration {
|
||||
name = "Neitzel FX Designer"
|
||||
ideaVersion { sinceBuild = "263.7307.200"; untilBuild = "263.*" }
|
||||
}
|
||||
instrumentCode = false
|
||||
}
|
||||
tasks.test { useJUnit(); jvmArgs("-Djava.awt.headless=true") }
|
||||
Reference in New Issue
Block a user