<< Back to previous view

[CLJS-707] script/bootstrap downloads unspecified version of closure-compiler Created: 29/Nov/13  Updated: 02/Dec/14  Resolved: 02/Dec/14

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Ryan Berdeen Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None


script/bootstrap downloads http://dl.google.com/closure-compiler/compiler-latest.zip (https://github.com/clojure/clojurescript/blob/r2080/script/bootstrap#L64), while the project.clj specifies a specific version.

As a result, you'll get a different version of the compiler when using following the Quick Start guide. The latest version of the Closure Compiler was compiled for Java 7, causing cljsc to fail with a java.lang.UnsupportedClassVersionError under Java 6.

Comment by David Nolen [ 29/Nov/13 4:02 PM ]

Does Closure Compiler no longer support Java 6?

Comment by Ryan Berdeen [ 30/Nov/13 1:16 PM ]

The release notes for v20131118 say "Move compiler to Java 7": https://groups.google.com/d/topic/closure-compiler-discuss/_T5Aai2sg68/discussion.

This release can still be built for Java 6 using ant jar -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6, but the current master makes use of Java 7 features in one class.

The Java 6/Java 7 support seems like it should be it's own issue. It's just how I discovered the problem, which is that running the bootstrap script doesn't give a consistent result. All of the other dependencies apart from closure-compiler have explicitly set versions, so I'm not sure I understand the reasoning. Shouldn't it download from central.maven.org with a version that matches project.clj?

Comment by David Nolen [ 30/Nov/13 1:44 PM ]

project.clj is just a convenience for people actually hacking on the compiler for now.

Comment by David Nolen [ 02/Dec/14 6:23 AM ]

We simply stay abreast of the Closure Compiler.

Generated at Tue Jan 16 04:14:34 CST 2018 using JIRA 4.4#649-r158309.