Skip to content

Update Section Runtime Images, subsection Non-modular using Badass Runtime Plugin #275

@DJViking

Description

@DJViking

The subsection for Modular with Maven|Gradle are using the Badass JLink Plugin (org.beryx.jlink).
For Non-modular projects there is the Badass Runtime Plugin that could be used instead to create a runtime image.
https://badass-runtime-plugin.beryx.org

plugins {
  id 'application'
  id 'org.openjfx.javafxplugin' version '0.1.0'
  id 'org.beryx.runtime' version '1.13.1'
}

application {
    mainClass = "org.example.hellofx.Launcher"
    applicationName = 'hellofx'
}

javafx {
    version = "24.0.2"
    modules = [
        'javafx.controls',
        'javafx.fxml'
    ]
}

runtime {
    options = [ '--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages' ]
    modules = [ 'java.naming', 'java.xml' ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions