• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

brunoborges/javafx-jlink-starter-gradle: A JavaFX starter project with Gradle an ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

brunoborges/javafx-jlink-starter-gradle

开源软件地址(OpenSource Url):

https://github.com/brunoborges/javafx-jlink-starter-gradle

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

JavaFX Starter Project with Gradle and Jlink (Java 11+)

This is a starter project to help Java developers get started with building cross-platform graphical applications using JavaFX and Java 11 modules.

Simply clone this project and start coding. Adjust parameters like project name, package name and so on.

Build Status

Building and running

You will need OpenJDK 11 (or newer).

./gradlew dist run

Adding modules and dependencies

You can add modules and dependencies using Gradle. Here's an example with icon packs from Ikonli project, by Andres Almiray.

  1. Clone this repository.

  2. Add ikonli-javafx and an icon pack as dependencies.

    repositories {
        jcenter()
    }
    dependencies {
         implementation 'org.kordamp.ikonli:ikonli-javafx:11.1.0'
         implementation 'org.kordamp.ikonli:ikonli-fontawesome-pack:11.1.0'
    }
    
  3. Modify module-info.java to require ikonli modules.

    module fxapp {
        ...
        // add icon pack modules
        requires org.kordamp.iconli.core;
        requires org.kordamp.ikonli.javafx;
        requires org.kordamp.ikonli.fontawesome;
    }
    
  4. Invoke the dist target.

  5. Run the generated image.

Distribution images

Once you run gradle dist, a ZIP file with a specific, optimized JVM for your local platform (Windows, Mac, Linux) will be generated inside build/distributions.

CI/CD for Windows, Mac, and Linux

This project comes with an Azure Pipelines setup. It is ready to produce binaries for Windows, Mac, and Linux. Visit the service to set up your account, and integrate with GitHub.

Looking for a Maven archetype ?

Check the maven-javafx-archetype project. No jlink support.

License

The project is licensed under Apache License. See LICENSE file for the full license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap