javafx-gradle-plugin | Gradle plugin that makes it easy to work with JavaFX | Plugin library

 by   openjfx Java Version: 0.0.11 License: BSD-3-Clause

kandi X-RAY | javafx-gradle-plugin Summary

kandi X-RAY | javafx-gradle-plugin Summary

javafx-gradle-plugin is a Java library typically used in Plugin, Gradle, JavaFX applications. javafx-gradle-plugin has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. However javafx-gradle-plugin has 2 bugs. You can download it from GitHub.

Simplifies working with JavaFX 11+ for gradle projects.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              javafx-gradle-plugin has a highly active ecosystem.
              It has 258 star(s) with 41 fork(s). There are 18 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 29 open issues and 50 have been closed. On average issues are closed in 99 days. There are 3 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of javafx-gradle-plugin is 0.0.11

            kandi-Quality Quality

              javafx-gradle-plugin has 2 bugs (0 blocker, 0 critical, 2 major, 0 minor) and 12 code smells.

            kandi-Security Security

              javafx-gradle-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              javafx-gradle-plugin code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              javafx-gradle-plugin is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              javafx-gradle-plugin releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              javafx-gradle-plugin saves you 175 person hours of effort in developing the same functionality from scratch.
              It has 444 lines of code, 41 functions and 11 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed javafx-gradle-plugin and discovered the below as its top functions. This is intended to give you an instant insight into javafx-gradle-plugin implemented functionality, and help decide if they suit your requirements.
            • Configure the modules
            • Clear JavaFX dependencies
            • Updates the JavaFX dependencies
            • Set the list of JavaScript modules
            • Returns the configuration
            • Gets the JavaFXPlatform
            • Gets the version
            • Gets the classifier
            • Launch the JavaFX application
            • Get the list of modules
            • Detect JavaFX platform
            • Builds the plugins
            • Set the JavaFX configuration
            • Set the JavaFX dependencies
            • Sets the JavaFX version
            • Returns true if the given jar is a JavaFX module
            Get all kandi verified functions for this library.

            javafx-gradle-plugin Key Features

            No Key Features are available at this moment for javafx-gradle-plugin.

            javafx-gradle-plugin Examples and Code Snippets

            No Code Snippets are available at this moment for javafx-gradle-plugin.

            Community Discussions

            QUESTION

            How to set application installer icon in JavaFX?
            Asked 2019-Sep-18 at 18:21

            I'm using the JavaFX-Gradle-plugin to build the distribute-able binaries and the installer of a JavaFX application. When my application runs, I'm able to set the icon this way:

            ...

            ANSWER

            Answered 2017-Dec-20 at 11:29

            There is a open pull request documenting this here

            It says:

            Customize Icons

            To customize the icons used in a native bundle, you have to provide the icons for the appropriate bundle. The icons must follow the file name convention in order to get picked up.

            Tip: Set the verbose setting to true, to have log which files are picked up from your deploy directory.

            and for Microsoft Windows in particular:

            Windows

            Icon location: src/main/deploy/windows

            For Windows you can provide two different icons.

            • application icon
            • setup icon - the icon of the installer

            | Type | Filename | | :---------------- |:------------------------- | | .exe icon | \.ico | | setup exe icon | \-setup-icon.bmp |

            Despite what it says there, the correct path is src/main/deploy/packages/windows as show in the adjusted-launcher-icon example.

            Source https://stackoverflow.com/questions/47743538

            QUESTION

            java 10 gradle project : automatic module not found
            Asked 2019-Jul-31 at 14:15

            I created a java 10 project with intelliJ, using gradle. I copied some stuff into it (some "AppFx" class using the library guava and javaFx, and a personal build.gradle file). I also added a module-info.java file in src/main/java with this content:

            ...

            ANSWER

            Answered 2019-Jul-31 at 14:15

            The issue is Gradle still (as of 4.10-rc-2) doesn't have first-class support for Jigsaw modules. All the tasks will use the classpath, not the modulepath, when executing. This obviously will cause issues when trying to create a modular library/application (with module-info.java).

            If you want to use Jigsaw modules in your project you should read Building Java 9 Modules. Your scenario, as @nullpointer mentions, is best covered by this section of the linked document. The takeaway is to add the following to your build.gradle file:

            Source https://stackoverflow.com/questions/51917106

            QUESTION

            Image isn't loaded from jar builded by gradle in JavaFX project
            Asked 2018-Sep-19 at 02:25

            I made an app with JavaFX and it worked correctly when I build the project with the build button on IntelliJ IDE. However it doesn't work when I run from jar file generated from gradle JavaFX project and the following error is shown on console.

            ...

            ANSWER

            Answered 2018-Sep-19 at 02:25

            QUESTION

            gradle : java tests ran twice
            Asked 2018-Aug-30 at 20:46

            I am making a skeletton of a java project; the gradle build file has an annoying problem : tests are ran twice, one time by the task 'JUnitPlatformTest' and a second time by the task 'test'.

            The first one seems to trigger the second, so I can't disable it, and I would like to keep the second one as there is a little difference between them : the first one is in the console (of intelliJ) and the second uses the integrated intelliJ window.

            here is gradle.build

            ...

            ANSWER

            Answered 2018-Aug-30 at 20:46

            According to this official website, ...

            The JUnit Platform Gradle Plugin is deprecated

            The very basic junit-platform-gradle-plugin developed by the JUnit team was deprecated in JUnit Platform 1.2 and will be discontinued in 1.3. Please switch to Gradle’s standard test task.

            So you should remove this plugin from your build file and, if necessary, try to port the remaining settings to the test task of the java plugin.

            Source https://stackoverflow.com/questions/52102536

            QUESTION

            NoClassDefFoundError StringUtils or Gson when running a JavaFX Gradle application
            Asked 2018-May-18 at 18:06

            I'm building a JavaFX application and I seem to be having trouble adding and using libraries like Gson or Apache Commons Lang. The libraries seem to add fine when referenced in my build.gradle and Intellij also shows they're in my project.. Gradle also seems to run clean and build with no problems. The problem occurs when I actually run the app and click the button that triggers the event sub-routine where the problem begins. I also get errors like this, no matter the library I try to reference:

            ...

            ANSWER

            Answered 2018-May-17 at 21:50

            You miss apache commons-lang in your classpath. Add

            Source https://stackoverflow.com/questions/50400916

            QUESTION

            Native package of JavaFX 8 app with with javafx-maven-plugin on 32-bit Windows fails to load due to MSVCR100.dll missing
            Asked 2018-Apr-05 at 08:13

            I am packaging my app into exe with javafx-maven-plugin. x64 version works well. But then I package x86 version on 32-bit Windows 7 (running in VirtualBox if that's important) with 32-bit JDK 1.8.0_161 and 32-bit Maven. The resulting application installs, but fails to run, claiming that MSVCR100.dll is missing even though it is in the runtime\bin folder. I googled around and found out that this is a JDK bug that was supposedly fixed way back in u40. So why does this still happen? If I copy that dll manually next to the .exe it starts on one machine (again, in VirtualBox), but for some reason silently crashed on another (real one this time, fresh installation). Found an identical problem in javafx-gradle-plugin issues, though it got resolved when building on newest Win10 version, whereas I'm building on newest Win7.

            If I just install Microsoft Visual C++ 2010 Redistributable Package then everything works, obviously, but I don't want user having to do that. So how do I copy .dll with Inno Setup script and how do I figure out the reason behind silent crashing?

            ...

            ANSWER

            Answered 2018-Feb-09 at 06:35

            There may be another .dll on which MSVCR100.dll depends and which is not present on specific machine.

            That is a reason why the Redistributable Package installs everything together.

            Try to find another dependencies using http://dependencywalker.com/, it looks like you need more dlls than MSVCR100.dll.

            Or simply install Redistributable Package on each machine. Installing it multiple times does not harm any application or system.

            Source https://stackoverflow.com/questions/48682263

            QUESTION

            How do I sign an MSI using javafxpackager?
            Asked 2018-Mar-23 at 17:44

            I'm actually using javafxpackager through the JavaFX-Gradle-Plugin, but I can't figure out the solution in plain javafxpackager, so, that would help as well.

            How do I sign an MSI using javafxpackager? How do I specify the cert/key/whatever is needed?

            In its documentation:

            I can see the options for Mac OS, such as: mac.signing-key-developer-id-app=key but I don't see anything about signing the Windows MSI installer.

            In this doc:

            it acknowledges the need for signing it by saying:

            If you plan to distribute your MSI package on the network, then consider signing it for the best user experience.

            but there's no explanation on how to achieve this (compared to the Mac OS equivalent section).

            ...

            ANSWER

            Answered 2018-Mar-23 at 17:44

            QUESTION

            Adding extension libraries to wix when using the JavaFX packager?
            Asked 2018-Feb-09 at 19:30

            I'm using the JavaFX packager through the JavaFX-Gradle-Plugin and I need to add a couple of Wix extension libraries to be able to run my app after install.

            How do I achieve that?

            According to the Wix documentation, by adding -ext WixUIExtension -ext WixUtilExtension to the command line, but I don't see how to do it from the JavaFX packager nor JavaFX-Gradle-Plugin.

            ...

            ANSWER

            Answered 2018-Feb-09 at 19:30

            After looking into the responsible msi-bundler, I found this fragment:

            Source https://stackoverflow.com/questions/48711876

            QUESTION

            How do I customize the program name in a traybar notification in AWT?
            Asked 2017-Dec-21 at 19:29

            AWT's TrayIcon class has a method called displayMessage that shows a native OS message that in Windows 10 looks like this:

            when called like this:

            ...

            ANSWER

            Answered 2017-Dec-15 at 12:37

            To change the pop-up text which in your posted screenshot is displayed as Java(TM) Platform SE binary in your Blah.exe to Blah you could use for example the Resource Hacker™.

            Change in the section Version Info the value for FileDescription to Blah either interactive in the GUI or on commandline.

            Find below a simple example which needs to be amended for your needs.

            versioninfo.rc resource script containing the information for the VERSIONINFO resource

            Source https://stackoverflow.com/questions/47764243

            QUESTION

            How do I change the extension of a launcher using JavaFX?
            Asked 2017-Dec-11 at 13:37

            I'm building a JavaFX application and using the JavaFX packaging tools by means of the JavaFX-Gradle-plugin. I'm generating various launchers with this configuration:

            ...

            ANSWER

            Answered 2017-Dec-11 at 13:37

            Out-of-the-box your request really is "impossible", but there is a solution, and some lines of explanation.

            The OracleJDK/OpenJDK has some really confusing way of bundling all tools together (and I'm still struggling with my progress to get it compatible with JDK9, but this is mostly due to missing spare time for this project). The internal javapackager-libs contain some so called "bundler", which do the main work for preparing the right jfx-jar, generating all required installer-creation-files and copying the native launcher (the exe-file) to the right place with the right name. This has a lot of restrictions: the installer-creation-file contains a lot of hard-coded stuff, including file-extensions and such pieces.

            I have created some small example-project for creating some OWN bundler, which you are required to re-implement for this: https://github.com/javafx-maven-plugin/javafx-maven-plugin/tree/master/src/it/23-simple-custom-bundler

            You will need to copy-paste some stuff from this file: http://hg.openjdk.java.net/openjfx/8u-dev/rt/file/bb53ab0b66a0/modules/fxpackager/src/main/java/com/oracle/tools/packager/windows/WinExeBundler.java

            Please take a close look to the used template, which can be at the resources-folder: http://hg.openjdk.java.net/openjfx/8u-dev/rt/file/bb53ab0b66a0/modules/fxpackager/src/main/resources/com/oracle/tools/packager/windows/template.iss#l42

            Please take care of the license these files are, I can not give legal advices, just spreading my thoughts about it here.

            Disclaimer: I'm the creator of the javafx-gradle-plugin

            Source https://stackoverflow.com/questions/47753480

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install javafx-gradle-plugin

            To use the plugin, apply the following two steps:.

            Support

            Issues can be reported to the Issue tracker. Contributions can be submitted via Pull requests, providing you have signed the Gluon Individual Contributor License Agreement (CLA).
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/openjfx/javafx-gradle-plugin.git

          • CLI

            gh repo clone openjfx/javafx-gradle-plugin

          • sshUrl

            git@github.com:openjfx/javafx-gradle-plugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link