greenlaw110 / greenscript

A tool help web developers manage javascript/css rendering, including minimize and dependence management
42 stars 24 forks source link

Guava Dependencies conflict (1.2.8a) #48

Closed jgrenon closed 12 years ago

jgrenon commented 12 years ago

I'm using com.google.guava -> guava 11.0.1 and it's causing a conflict when trying to load the home page of my project. What version are you using? What can I do to resolve this conflict?

play.exceptions.UnexpectedException: Unexpected Error at play.Invoker$Invocation.onException(Invoker.java:244) at play.Invoker$Invocation.run(Invoker.java:286) at Invocation.HTTP Request(Play!) Caused by: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet; at com.google.javascript.jscomp.DiagnosticGroup.(DiagnosticGroup.java:48) at com.google.javascript.jscomp.DiagnosticGroups.registerGroup(DiagnosticGroups.java:44) at com.google.javascript.jscomp.DiagnosticGroups.(DiagnosticGroups.java:82) at com.google.javascript.jscomp.CompilationLevel.applySafeCompilationOptions(CompilationLevel.java:122) at com.google.javascript.jscomp.CompilationLevel.setOptionsForCompilationLevel(CompilationLevel.java:59) at com.greenscriptool.utils.ClosureCompressor.(ClosureCompressor.java:36) at com.greenscriptool.Minimizer.(Minimizer.java:75) at play.modules.greenscript.GreenScriptPlugin.initializeMinimizer_(GreenScriptPlugin.java:624) at play.modules.greenscript.GreenScriptPlugin.InitializeMinimizers(GreenScriptPlugin.java:503) at play.modules.greenscript.GreenScriptPlugin.onRoutesLoaded(GreenScriptPlugin.java:200) at play.plugins.PluginCollection.onRoutesLoaded(PluginCollection.java:624) at play.mvc.Router.load(Router.java:51)

greenlaw110 commented 12 years ago

I think google closure caused some trouble, I will add an option to allow user to use YUI compressor in the next version.

On Tue, May 15, 2012 at 9:56 PM, Joel Grenon < reply@reply.github.com

wrote:

I'm using com.google.guava -> guava 11.0.1 and it's causing a conflict when trying to load the home page of my project. What version are you using? What can I do to resolve this conflict?

play.exceptions.UnexpectedException: Unexpected Error at play.Invoker$Invocation.onException(Invoker.java:244) at play.Invoker$Invocation.run(Invoker.java:286) at Invocation.HTTP Request(Play!) Caused by: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet; at com.google.javascript.jscomp.DiagnosticGroup.(DiagnosticGroup.java:48) at com.google.javascript.jscomp.DiagnosticGroups.registerGroup(DiagnosticGroups.java:44) at com.google.javascript.jscomp.DiagnosticGroups.(DiagnosticGroups.java:82) at com.google.javascript.jscomp.CompilationLevel.applySafeCompilationOptions(CompilationLevel.java:122) at com.google.javascript.jscomp.CompilationLevel.setOptionsForCompilationLevel(CompilationLevel.java:59) at com.greenscriptool.utils.ClosureCompressor.(ClosureCompressor.java:36) at com.greenscriptool.Minimizer.(Minimizer.java:75) at play.modules.greenscript.GreenScriptPlugin.initializeMinimizer_(GreenScriptPlugin.java:624) at play.modules.greenscript.GreenScriptPlugin.InitializeMinimizers(GreenScriptPlugin.java:503) at play.modules.greenscript.GreenScriptPlugin.onRoutesLoaded(GreenScriptPlugin.java:200) at play.plugins.PluginCollection.onRoutesLoaded(PluginCollection.java:624) at play.mvc.Router.load(Router.java:51)


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/48

carchrae commented 12 years ago

To answer @jgrenon :

- com.google.guava -> guava 10.0.1 

seems to do the job. this is what maven says closure-compiler depends on.