File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ plugins {
22 id(" checkstyle" )
33}
44
5- apply {
6- from(" javafx.gradle.kts" )
7- }
8-
95group = " org.jackhuang"
106version = " 3.0"
117
@@ -95,4 +91,8 @@ tasks.create("checkTranslations") {
9591 }
9692}
9793
94+ apply {
95+ from(" javafx.gradle.kts" )
96+ }
97+
9898defaultTasks(" clean" , " build" )
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ val jfxInClasspath =
5252if (! jfxInClasspath && JavaVersion .current() >= JavaVersion .VERSION_11 ) {
5353 val os = System .getProperty(" os.name" ).toLowerCase().let { osName ->
5454 when {
55- osName.contains(" win" ) -> " win "
55+ osName.contains(" win" ) -> " windows "
5656 osName.contains(" mac" ) -> " osx"
5757 osName.contains(" linux" ) || osName.contains(" unix" ) -> " linux"
5858 else -> null
@@ -67,7 +67,7 @@ if (!jfxInClasspath && JavaVersion.current() >= JavaVersion.VERSION_11) {
6767 }
6868
6969 if (os != null && arch != null ) {
70- val platform = jfxPlatforms.find { it.name == " $os -arch" }
70+ val platform = jfxPlatforms.find { it.name == " $os -$ arch" }
7171 if (platform != null ) {
7272 val groupId = platform.groupId
7373 val version = platform.version
You can’t perform that action at this time.
0 commit comments