Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Gradle kotlin dsl #173

Open
foofigo opened this issue Jul 29, 2019 · 0 comments
Open

Gradle kotlin dsl #173

foofigo opened this issue Jul 29, 2019 · 0 comments

Comments

@foofigo
Copy link

foofigo commented Jul 29, 2019

Would use the minify plugin on gradle kotlin dsl, but configuration seems not working.
This is the build.gradle.kts task i try to do :

tasks{
    "minifyJs"(MinifyJsTask::class) {
        source = filteTree(fileJs.parent) {include(fileJs.name)}
        setDest("build/tm/js/" + fileJs.name)
        closure.compilationLevel = "WHITESPACE_ONLY"
        closure.compilerOptions.languageIn = CompilerOptions.LanguageMode.EMACSCRIPT6
    }
}

Everythings seems working expect the closure configuration.
Any idea ? Or did i have made a mistake ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant