Skip to content

Commit

Permalink
🔨 CONFIG: Update gradle settings
Browse files Browse the repository at this point in the history
Updated gradle settings for easier build and deployment.
  • Loading branch information
GreengagePlum committed Apr 27, 2023
1 parent 072f335 commit ed2b75d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Main-Class: me.erken.efe.chess.Main
Main-Class: me.erken.efe.chess.main.Main
23 changes: 21 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
plugins {
id("java")
id("application")
id("idea")
id("org.openjfx.javafxplugin") version "0.0.13"
id("org.beryx.jlink") version "2.26.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = "me.erken.efe.chess"
Expand All @@ -23,8 +27,23 @@ tasks.jar {
manifest {
from("MANIFEST.MF")
}
// from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
// duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

application {
mainClass.set("me.erken.efe.chess.Main")
}
mainClass.set("me.erken.efe.chess.main.Main")
}

javafx {
version = "17.0.7"
modules("javafx.controls", "javafx.fxml", "javafx.graphics")
// configuration = "compileOnly"
}

jlink {
options.set(listOf("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages"))
launcher {
name = "Chess"
}
}
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = "Chess"

0 comments on commit ed2b75d

Please sign in to comment.