You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.
It seems that something goes wrong with CompilerOptions instance if a task of MinifyJsTask type is defined in a standalone file that is then included via apply from.
buildAlt task uses minifyJsLocal task that is defined right in build.gradle and it does work properly. But build, which depends on minifyJsExtermal from commons/minify.gradle, produces the following exception:
Execution failed for task ':minifyJsExtermal'.
> No signature of method: com.eriwen.gradle.js.JsMinifier.minifyJsFile() is applicable for argument types: (java.util.LinkedHashSet, java.util.LinkedHashSet, java.io.File, com.google.javascript.jscomp.CompilerOptions, java.lang.String, java.lang.String) values: [[/Volumes/Users/esycat/tmp/gradle-js-test/js/main.js], ...]
Possible solutions: minifyJsFile(java.util.Set, java.util.Set, java.io.File, com.google.javascript.jscomp.CompilerOptions, java.lang.String, java.lang.String)
The following classes appear as argument class and as parameter class, but are defined by different class loader:
com.google.javascript.jscomp.CompilerOptions (defined by 'org.gradle.util.MutableURLClassLoader@7f3846fc' and 'org.gradle.util.MutableURLClassLoader@6574f7a7')
If one of the method suggestions matches the method you wanted to call,
then check your class loader setup.
The text was updated successfully, but these errors were encountered:
It seems that something goes wrong with
CompilerOptions
instance if a task ofMinifyJsTask
type is defined in a standalone file that is then included viaapply from
.Please, check this example:
https://dl.dropbox.com/u/1571429/devroom/gradle-js-test.tar
buildAlt
task usesminifyJsLocal
task that is defined right inbuild.gradle
and it does work properly. Butbuild
, which depends onminifyJsExtermal
fromcommons/minify.gradle
, produces the following exception:The text was updated successfully, but these errors were encountered: