Reverted back to using swing for the base run jar
This commit is contained in:
@@ -170,5 +170,5 @@ https://github.com/TheElectronWill/night-config
|
|||||||
SVG Salamander for SVG support\
|
SVG Salamander for SVG support\
|
||||||
https://github.com/blackears/svgSalamander
|
https://github.com/blackears/svgSalamander
|
||||||
|
|
||||||
JavaFX for standalone jar and config ui\
|
FlatLaf for theming (for development testing, may remove later)\
|
||||||
https://openjfx.io/
|
https://www.formdev.com/flatlaf/
|
||||||
|
|||||||
+9
-21
@@ -10,9 +10,6 @@ plugins {
|
|||||||
// Manifold preprocessor
|
// Manifold preprocessor
|
||||||
id "systems.manifold.manifold-gradle-plugin" version "0.0.2-alpha"
|
id "systems.manifold.manifold-gradle-plugin" version "0.0.2-alpha"
|
||||||
|
|
||||||
// JavaFX library (useful for ui stuff)
|
|
||||||
id "org.openjfx.javafxplugin" version "0.0.13"
|
|
||||||
|
|
||||||
// Provides mc libraries to core
|
// Provides mc libraries to core
|
||||||
// id "org.spongepowered.gradle.vanilla" version '0.2.1-SNAPSHOT' apply false
|
// id "org.spongepowered.gradle.vanilla" version '0.2.1-SNAPSHOT' apply false
|
||||||
}
|
}
|
||||||
@@ -100,7 +97,6 @@ subprojects { p ->
|
|||||||
// Apply plugins
|
// Apply plugins
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
apply plugin: "com.github.johnrengelman.shadow"
|
apply plugin: "com.github.johnrengelman.shadow"
|
||||||
apply plugin: "org.openjfx.javafxplugin"
|
|
||||||
if (isMinecraftSubProject)
|
if (isMinecraftSubProject)
|
||||||
apply plugin: "systems.manifold.manifold-gradle-plugin"
|
apply plugin: "systems.manifold.manifold-gradle-plugin"
|
||||||
if (p == project(":core"))
|
if (p == project(":core"))
|
||||||
@@ -139,11 +135,6 @@ subprojects { p ->
|
|||||||
mainClass.set("com.seibel.lod.core.jar.JarMain")
|
mainClass.set("com.seibel.lod.core.jar.JarMain")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remember, to shadow it you need to add it in the dependency part
|
|
||||||
javafx {
|
|
||||||
version = "${rootProject.javafx_version}"
|
|
||||||
modules = ["javafx.swing", "javafx.controls", "javafx.graphics"]
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
//=====================//
|
//=====================//
|
||||||
@@ -156,8 +147,8 @@ subprojects { p ->
|
|||||||
annotationProcessor("systems.manifold:manifold-preprocessor:${rootProject.manifold_version}")
|
annotationProcessor("systems.manifold:manifold-preprocessor:${rootProject.manifold_version}")
|
||||||
|
|
||||||
// Log4j
|
// Log4j
|
||||||
implementation("org.apache.logging.log4j:log4j-api:${rootProject.log4j_version}")
|
shadowMe("org.apache.logging.log4j:log4j-api:${rootProject.log4j_version}")
|
||||||
implementation("org.apache.logging.log4j:log4j-core:${rootProject.log4j_version}")
|
shadowMe("org.apache.logging.log4j:log4j-core:${rootProject.log4j_version}")
|
||||||
|
|
||||||
// JOML
|
// JOML
|
||||||
implementation("org.joml:joml:${rootProject.joml_version}")
|
implementation("org.joml:joml:${rootProject.joml_version}")
|
||||||
@@ -174,18 +165,12 @@ subprojects { p ->
|
|||||||
shadowMe("com.electronwill.night-config:toml:${rootProject.nightconfig_version}")
|
shadowMe("com.electronwill.night-config:toml:${rootProject.nightconfig_version}")
|
||||||
shadowMe("com.electronwill.night-config:json:${rootProject.nightconfig_version}")
|
shadowMe("com.electronwill.night-config:json:${rootProject.nightconfig_version}")
|
||||||
|
|
||||||
|
// Theming
|
||||||
|
shadowMe("com.formdev:flatlaf:${rootProject.flatlaf_version}")
|
||||||
|
|
||||||
// SVG
|
// SVG
|
||||||
shadowMe("com.formdev:svgSalamander:${rootProject.svgSalamander_version}")
|
shadowMe("com.formdev:svgSalamander:${rootProject.svgSalamander_version}")
|
||||||
|
shadowMe("com.formdev:flatlaf-extras:${rootProject.flatlaf_version}")
|
||||||
// JavaFX/OpenJFX
|
|
||||||
// Remember, you also need to define jfx modules in its own jfx thing
|
|
||||||
// This part of the code is just to shadow the libraries
|
|
||||||
// FIXME: This doesnt work, find a workaround
|
|
||||||
shadowMe("org.openjfx:javafx:${rootProject.javafx_version}")
|
|
||||||
shadowMe("org.openjfx:javafx-base:${rootProject.javafx_version}")
|
|
||||||
shadowMe("org.openjfx:javafx-swing:${rootProject.javafx_version}")
|
|
||||||
shadowMe("org.openjfx:javafx-controls:${rootProject.javafx_version}")
|
|
||||||
shadowMe("org.openjfx:javafx-graphics:${rootProject.javafx_version}")
|
|
||||||
|
|
||||||
|
|
||||||
// Remember, for lwjgl dependancies that arent included in Minecraft, you need to also need to add it to the ShadowJar thing
|
// Remember, for lwjgl dependancies that arent included in Minecraft, you need to also need to add it to the ShadowJar thing
|
||||||
@@ -254,6 +239,9 @@ subprojects { p ->
|
|||||||
// NightConfig (includes Toml & Json)
|
// NightConfig (includes Toml & Json)
|
||||||
relocate "com.electronwill.nightconfig", "${librariesLocation}.electronwill.nightconfig"
|
relocate "com.electronwill.nightconfig", "${librariesLocation}.electronwill.nightconfig"
|
||||||
|
|
||||||
|
// Theming
|
||||||
|
relocate 'com.formdev.flatlaf', 'distanthorizons.libraries.formdev.flatlaf'
|
||||||
|
|
||||||
// SVG
|
// SVG
|
||||||
relocate "com.kitfox.svg", "${librariesLocation}.kitfox.svg"
|
relocate "com.kitfox.svg", "${librariesLocation}.kitfox.svg"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ mod_discord=https://discord.gg/xAB8G4cENx
|
|||||||
manifold_version=2023.1.0
|
manifold_version=2023.1.0
|
||||||
toml_version=3.6.4
|
toml_version=3.6.4
|
||||||
nightconfig_version=3.6.6
|
nightconfig_version=3.6.6
|
||||||
javafx_version=19
|
flatlaf_version=3.0
|
||||||
svgSalamander_version=1.1.3
|
svgSalamander_version=1.1.3
|
||||||
|
|
||||||
log4j_version=2.19.0
|
log4j_version=2.19.0
|
||||||
|
|||||||
Reference in New Issue
Block a user