beryx / badass-jlink-plugin

Create a custom runtime image of your modular application
https://badass-jlink-plugin.beryx.org
Apache License 2.0
386 stars 27 forks source link

Error: 'with' expected #256

Open Zedai00 opened 10 months ago

Zedai00 commented 10 months ago

image This is the error and this is my build.gradle.kts

plugins {
    id("java")
    id("application")
    id("org.beryx.jlink") version "3.0.1"
}

group = "org.zed.snakez"
version = "1.0-SNAPSHOT"

application {
    mainClass.set("org.zed.snakez.Main")
}

dependencies {
    implementation("org.jline:jline:3.25.0")
    implementation("org.jline:jline-terminal-jna:3.25.0")
}

tasks {
    jar {
        manifest.attributes["Main-Class"] = "org.zed.snakez.Main"
        duplicatesStrategy = DuplicatesStrategy.EXCLUDE
        from({
            configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
        })
    }
}

repositories {
    mavenCentral()
}
airsquared commented 9 months ago

Could you provide the full log output of the createMergedModule task in a code block or file? (please no screenshots of text)