title: How to fix jvm options exports javafx 11 to com.jfoenix on gradle idea?
body: <p>It's been 3 days that I look on the internet how to fix this on gradle </p>
  
  <pre><code>Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXTabPaneSkin (in module com.jfoenix) cannot access class com.sun.javafx.scene.control.behavior.TabPaneBehavior (in module javafx.controls) because module javafx.controls does not export com.sun.javafx.scene.control.behavior to module com.jfoenix
  </code></pre>
  
  <p>On simple idea projects I was adding </p>
  
  <pre><code>--add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix --add-exports javafx.controls/com.sun.javafx.scene.control=com.jfoenix --add-exports javafx.base/com.sun.javafx.binding=com.jfoenix --add-exports javafx.graphics/com.sun.javafx.stage=com.jfoenix --add-exports javafx.base/com.sun.javafx.event=com.jfoenix 
  </code></pre>
  
  <p>I know, I have to add jvm options but how do I ? </p>
  
  <p>I'm using  gradle javafx 11.0.2, java 11, on intellij idea,</p>
  
  <p>this is the build.gradle </p>
  
  <pre><code>plugins {
      id 'java'
      id 'application'
      id 'org.openjfx.javafxplugin' version '0.0.8'
  }
  
  compileJava.options.encoding = 'UTF-8'
  repositories {
      mavenCentral()
  }
  
  dependencies {
      //     https://mvnrepository.com/artifact/com.jfoenix/jfoenix
      compile group: 'com.jfoenix', name: 'jfoenix', version: '9.0.9'
      compile group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.7.0-9.1.2'
      // https://mvnrepository.com/artifact/de.jensd/fontawesomefx-commons
      runtime group: 'de.jensd', name: 'fontawesomefx-commons', version: '9.1.2'
  // https://mvnrepository.com/artifact/com.h2database/h2
      compile group: 'com.h2database', name: 'h2', version: '1.4.199'
  }
  
  javafx {
      version = "11.0.2"
      modules = [ 'javafx.controls', 'javafx.fxml','javafx.graphics','javafx.base' ]
  }
  
  mainClassName = 'org.yanisboukir.agence.Main'
  </code></pre>
  
  <p>Thanks</p>