hydraulic-software / conveyor

Gradle plugin, user guide and discussion forums for Conveyor
https://conveyor.hydraulic.dev
Apache License 2.0
123 stars 9 forks source link

Feature: Import the appResourcesRootDir setting from the Compose Gradle plugin #47

Closed mikehearn closed 1 year ago

mikehearn commented 1 year ago

Compose Gradle plugin has developed some notion similar to our input hierarchy:

https://github.com/JetBrains/compose-jb/blob/master/tutorials/Native_distributions_and_local_execution/README.md#adding-files-to-packaged-application

When porting an app from their jpackage wrapper to Conveyor, this won't get imported currently and you'll have to figure it out/fix it yourself. We should make the plugin recognize this (new?) property and emit the equivalent config:

resources-dir = resources   # or whatever the user put in their gradle build file
app {
    inputs += ${resources-dir}/common
    mac.inputs += ${resources-dir}/macos
    windows.inputs += ${resources-dir}/windows
    linux.inputs += ${resources-dir}/linux

    mac.amd64.inputs += ${resources-dir}/macos-x64
    mac.aarch64.inputs += ${resources-dir}/macos-arm64
    windows.amd64.inputs += ${resources-dir}/windows-x64
    windows.aarch64.inputs += ${resources-dir}/windows-arm64
    linux.amd64.inputs += ${resources-dir}/linux-x64
    linux.aarch64.inputs += ${resources-dir}/linux-arm64

    jvm.system-properties {
         compose.application.resources.dir = &&
    }
}