Commit 3195489d authored by Gerald Oster's avatar Gerald Oster
Browse files

[chore] upgrade to JavaFX 15 + fix some module problems

parent d230d6e8
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.12.0'
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'org.beryx.jlink' version '2.22.3'
}
group 'io.github.typhon0'
group 'eu.telecomnancy.javafx'
version '1.0'
java {
modularity.inferModulePath.set(true)
}
application{
mainModule = "eu.telecomnancy.javafx"
mainClass = "$mainModule/eu.telecomnancy.javafx.MainApp"
}
repositories {
mavenCentral()
}
......@@ -17,15 +27,14 @@ wrapper {
}
javafx {
version = "13"
modules = [ 'javafx.controls', 'javafx.fxml' ]
version = "15"
modules = [ 'javafx.base', 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.media', 'javafx.web']
}
mainClassName = "$moduleName/boilerplategradlejdk13.MainApp"
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'boilerplategradlejdk13'
name = 'eu.telecomnancy.javafx'
}
}
\ No newline at end of file
}
rootProject.name = 'boilerplategradlejdk13'
rootProject.name = 'boilerplate-gradle-jdk15'
package boilerplategradlejdk13;
package eu.telecomnancy.javafx;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
......
package boilerplategradlejdk13.controller;
package eu.telecomnancy.javafx.controller;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
......
module boilerplategradlejdk13 {
module eu.telecomnancy.javafx {
requires javafx.controls;
requires javafx.fxml;
opens boilerplategradlejdk13 to javafx.fxml;
opens boilerplategradlejdk13.controller to javafx.fxml;
opens eu.telecomnancy.javafx to javafx.fxml;
opens eu.telecomnancy.javafx.controller to javafx.fxml;
exports boilerplategradlejdk13;
exports eu.telecomnancy.javafx;
}
\ No newline at end of file
......@@ -5,7 +5,7 @@
<StackPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0"
xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="boilerplategradlejdk13.controller.FXMLController">
xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="eu.telecomnancy.javafx.controller.FXMLController">
<children>
<Label fx:id="label" text="Label" />
</children>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment