Giter Club home page Giter Club logo

javafx-template-with-gradle-and-proguard's Introduction

A Basic Setup for using ProGuard with the javafx-gradle-plugin

This is a basic JavaFx gradle template project . This works in Intelli j idea. Its a template created with ProGuard .Its empty it has one controller and one fxml file with a Application file that you can put all your code or start from. . This code in the project was deducted from https://github.com/FibreFoX/javafx-gradle-plugin , so all the credit goes to them. This template was created beause its very hard to create a gradle based javafx project in intelli j idea , i dont know about others but i had a hard time searching for this on the internet, hence i felt the need to puyt it on GitHub for other developers to try it out just like i did.

Below is the full documentation or details from which i got the original project .

Calling gradle jfxNative will generate some executable jar-file with javafx-support and will generate some executable file able to run on your machine/achitecture, which is called native launcher. Depending on the tools you have installed, there will be some installers generated too.

You need to set some vendor-name which is required for generating installers.

For having ProGuard to work on your jar-file, you have to make sure that the gradle-task ProGuardTask will run before the jfxJar-task provided with the javafx-gradle-plugin is executed. This projects shows the needed manual stitching to have all tasks being in the right order including some cleanup.

You can call gradle jfxJar and gradle jfxNative which will all produce some ProGuard obfruscated outcome.

For every system you target, you need some working system of that targeted one, because the generated result is generated for each architecture and the operating system using the local installed tool-sets. The used java(fx)packager is just a wrapper around these tools and the javafx-gradle-plugin is just a wrapper of that provided by the OpenJDK/OracleJDK.

You can find the JavaFX-JAR-file at build/jfx/app/javafx-proguard-gradle-jfx.jar and your native launcher can be found at build/jfx/native/javafx-proguard-gradle/ while the installers reside below thebuild/jfx/native/-folder.

Please read the official documentation of Oracle about the tools you are required to install for having installers be generated.

Please read the official documentation of ProGuard about the setup of the contents inside the proguard.conf-file, this is not part of the scope of this example-project.

javafx-template-with-gradle-and-proguard's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.