eriwen / gradle-js-plugin

Gradle plugin for working with JS
http://eriwen.github.io/gradle-js-plugin
Apache License 2.0
382 stars 113 forks source link

combinejs broken with gradle 3.4.1 and later #149

Closed ghost closed 7 years ago

ghost commented 7 years ago

I have a standard configuration as shown in the tutorial (using gradle-js-plugin 2.14.1) javascript.source { dev { js { srcDir jsSrcDir include ".js" exclude ".min.js" } } prod { js { srcDir jsSrcDir include "*.min.js" } } }

// Specify a collection of files to be combined, then minified and finally GZip compressed. task combinejs(type: com.eriwen.gradle.js.tasks.CombineJsTask) { if (env == 'prod') { source = javascript.source.prod.js.files } else { source = javascript.source.dev.js.files } dest = file("${buildDir}/all.js") }

Works perfectly fine with gradle 3.3. With gradle 3.4.1 or 3.5 it runs into an exception.

:myproject:combineJs FAILED

FAILURE: Build failed with an exception.

ghost commented 7 years ago

Sorry, issue only seemed to exist when upgrading from 3.3. to 3.4.1. After cleaning all caches, combinejs & minifyjs worked fine.