I want use gradle for bilding my project.
I load javafx but the fxml and swing don’t load.
Did anyone konw the reason ?
Here is my build.
plugins {
id ‘application’
id ‘org.openjfx.javafxplugin’ version ‘0.0.8’
}
apply plugin: ‘java’
apply plugin: ‘jacoco’
apply plugin: ‘application’
repositories {
jcenter()
}
configurations {
jasperreports {
transitive = true
}
}
//gradle.projectsEvaluated {
// processResources.dependsOn(compileJasperReports)
//}
dependencies {
compile group: 'org.json', name: 'json', version: '20171018'
compile group: 'com.jcraft', name: 'jsch', version: '0.1.44-1'
compile group: 'commons-net', name: 'commons-net', version: '3.6'
compile group: 'net.sf.jasperreports', name: 'jasperreports', version: '6.1.0'
}
javafx {
version = “13”
modules = [ ‘javafx.base’ ]
modules = [ ‘javafx.controls’ ]
modules = [ ‘javafx.fxml’ ]
modules = [ ‘javafx.graphics’ ]
modules = [ ‘javafx.media’ ]
modules = [ ‘javafx.swing’ ]
modules = [ ‘javafx.web’ ]
}
I am beginner, please help.
An other problem for me is jasperreports, you know an excample.