Skip to content

How can I change javacppPlatform at runtime? #24

Open
@zxdposter

Description

@zxdposter

I want use macosx-x86_64 on run application, but use linux-x86_64 when package.

These way seems not working.

    parent?.ext?.set("javacppPlatform", "linux-x86_64")
    println(parent?.ext?.get("javacppPlatform"))
    implementation(group = "org.bytedeco", name = "javacpp")
    implementation(group = "org.bytedeco", name = "ffmpeg-platform")
    implementation(group = "org.bytedeco", name = "javacv")

or

tasks {
    "war"(War::class) {
        first {
            parent?.ext?.set("javacppPlatform", "linux-x86_64")
            println(parent?.ext?.get("javacppPlatform"))
            true
        }
        enabled = true
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions