TheBoegl / gradle-launch4j

A gradle-plugin to create windows executables with launch4j
Apache License 2.0
311 stars 42 forks source link

How to use from Kotlin DSL? #84

Closed jcornaz closed 5 years ago

jcornaz commented 5 years ago

Hello,

Could you, please document usage from Kotlin DSL?

TheBoegl commented 5 years ago

I had no time to test this but as a starting point:

import edu.sc.seis.launch4j.tasks.DefaultLaunch4jTask

plugins {
    // your used plugins
    id("edu.sc.seis.launch4j") version "2.4.6"
}

tasks.withType<DefaultLaunch4jTask> {
    outfile = "MyApp.exe"
    mainClassName = "com.example.myapp.Start"
    icon = "${projectDir}/icons/myApp.ico"
    productName = "My App"
}
jcornaz commented 5 years ago

Thanks. Can you add it to the documentation?