Issue #11 resolved

Adding support for platform:basedir

created an issue

Can you add support for this attribute please: <fx:platform basedir=""/>

Was planned for 7u10 but is now part of JDK8:


Comments (5)

  1. shemnon repo owner

    Fixed by 200ffa4

    To use this, specify inside of javafx {} a javaRuntime file pointing to the runtime. For example:

    javafx {
        javaRuntime = file('C:/Program Files (x86)/Java/jdk1.7.0_21')
  2. Badisi reporter

    It works wonderfully !

    Thanks a lot shemnon :)

    I have two questions though:

    1) I have both jdk7 and jdk8 installed on my machine and I'm developing a javafx application with jdk7. I don't want my application to be bundled with any JRE so i'm using javaRuntime='<NO RUNTIME>'. The deploy target is made using jdk8 but what about the compile target ? Is my application compiled with jdk7 or jdk8 ?

    2) I'm pretty new at gradle stuff. Having a look at the 'apply from' url i have read that your plugin should update automatically but it doesn't.. I had to download the source and make a 'gradle install' again. Is it normal behavior or am i doing it wrong ?

  3. shemnon repo owner

    1) By default, your application is compile with whatever JDK you use to run Gradle, which is typically what you have JAVA_HOME set to. I use the defaults form the java plugin for gradle. You can tweak it by configugint hte CompileJava task: The most compatible way I've seen to build cross-JDK is to build with the lowest supported one.

    2) It depends on which apply from script you are using. If you are usingin one with snapshot in the text then the local one you build will override the remotely deployed snapshot. Your best bet is to sue the bintray url

    apply from: ''


    apply from: ''
  4. Log in to comment