From 01e0c0f28219724cd46df081edda465ae5bf2d01 Mon Sep 17 00:00:00 2001 From: Corey Date: Sat, 13 Aug 2022 17:24:31 +0100 Subject: [PATCH] feat: Java 11+ support Yoinked from https://github.com/Displee/cs2-editor/pull/5 --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index c0b4d6b..7e4a1ca 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,7 @@ buildscript { plugins { id 'java' id 'org.jetbrains.kotlin.jvm' version "$kotlin_version" + id 'org.openjfx.javafxplugin' version "0.0.9" } archivesBaseName = 'cs2-editor' @@ -61,6 +62,10 @@ tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } +javafx { + modules = ["javafx.controls", "javafx.fxml"] +} + jar { destinationDirectory = file("$rootDir") manifest {