@@ -9,6 +9,7 @@ The [Closure Compiler](https://developers.google.com/closure/compiler/) is a too
9
9
* [ Download a specific version] ( https://github.com/google/closure-compiler/wiki/Binary-Downloads ) . Also available via:
10
10
- [ Maven] ( https://github.com/google/closure-compiler/wiki/Maven )
11
11
- [ NPM] ( https://www.npmjs.com/package/google-closure-compiler )
12
+ * [ Use the JavaScript version] ( https://github.com/google/closure-compiler-js ) , with no Java dependency
12
13
* See the [ Google Developers Site] ( https://developers.google.com/closure/compiler/docs/gettingstarted_app ) for documentation including instructions for running the compiler from the command line.
13
14
14
15
## Options for Getting Help
@@ -45,23 +46,29 @@ unit tests too).
45
46
46
47
This will produce a jar file called `target/closure-compiler-1.0-SNAPSHOT.jar`.
47
48
49
+ Running `mvn -DskipTests -pl externs/pom.xml,pom-main.xml,pom-main-shaded.xml`
50
+ will skip building the GWT version of the compiler. This can speed up the build process significantly.
51
+
48
52
### Using [ Eclipse] ( http://www.eclipse.org/ )
49
53
50
54
1 . Download and open the [ Eclipse IDE] ( http://www.eclipse.org/ ) .
51
- 2 . Navigate to ` File > New > Project ... ` and create a Java Project. Give
52
- the project a name.
53
- 3 . Select ` Create project from existing source ` and choose the root of the
54
- checked-out source tree as the existing directory.
55
- 3 . Navigate to the ` build.xml ` file. You will see all the build rules in
56
- the Outline pane. Run the ` jar ` rule to build the compiler in
57
- ` build/compiler.jar ` .
55
+ 2 . Run ` mvn eclipse:eclipse -DdownloadSources=true ` to download JARs and build Eclipse project configuration.
56
+ 3 . Navigate to ` File > Import > Maven > Existing Maven Projects ` and browse to closure-compiler.
57
+ 4 . Import both closure-compiler and the nested externs project.
58
+ 5 . Disregard the warnings about maven-antrun-plugin and build errors.
59
+ 6 . In Package Explorer, remove from the build path:
60
+ - ` src/com/google/javascript/jscomp/debugger/DebuggerGwtMain.java `
61
+ - ` src/com/google/javascript/jscomp/gwt/ `
62
+ 7 . In Project config, navigate to ` Java Code Style > Formatter ` and configure the project to
63
+ use the [ Google styleguide settings] ( https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml ) .
64
+ 8 . See * Using Maven* above to build the JAR.
58
65
59
66
## Running
60
67
61
68
On the command line, at the root of this project, type
62
69
63
70
```
64
- java -jar build/ compiler.jar
71
+ java -jar target/closure- compiler-1.0-SNAPSHOT .jar
65
72
```
66
73
67
74
This starts the compiler in interactive mode. Type
@@ -210,19 +217,14 @@ system have been added.</td>
210
217
### Args4j
211
218
212
219
<table >
213
- <tr >
214
- <td>Code Path</td>
215
- <td><code>lib/args4j.jar</code></td>
216
- </tr >
217
-
218
220
<tr >
219
221
<td>URL</td>
220
222
<td>https://args4j.dev.java.net/</td>
221
223
</tr >
222
224
223
225
<tr >
224
226
<td>Version</td>
225
- <td>2.0.26 </td>
227
+ <td>2.33 </td>
226
228
</tr >
227
229
228
230
<tr >
@@ -245,11 +247,6 @@ options/arguments in your CUI application.</td>
245
247
### Guava Libraries
246
248
247
249
<table >
248
- <tr >
249
- <td>Code Path</td>
250
- <td><code>lib/guava.jar</code></td>
251
- </tr >
252
-
253
250
<tr >
254
251
<td>URL</td>
255
252
<td>https://github.com/google/guava</td>
@@ -279,19 +276,14 @@ options/arguments in your CUI application.</td>
279
276
### JSR 305
280
277
281
278
<table >
282
- <tr >
283
- <td>Code Path</td>
284
- <td><code>lib/jsr305.jar</code></td>
285
- </tr >
286
-
287
279
<tr >
288
280
<td>URL</td>
289
- <td>http ://code.google. com/p/jsr-305/ </td>
281
+ <td>https ://github. com/findbugsproject/findbugs </td>
290
282
</tr >
291
283
292
284
<tr >
293
285
<td>Version</td>
294
- <td>svn revision 47 </td>
286
+ <td>3.0.1 </td>
295
287
</tr >
296
288
297
289
<tr >
@@ -313,19 +305,14 @@ options/arguments in your CUI application.</td>
313
305
### JUnit
314
306
315
307
<table >
316
- <tr >
317
- <td>Code Path</td>
318
- <td><code>lib/junit.jar</code></td>
319
- </tr >
320
-
321
308
<tr >
322
309
<td>URL</td>
323
310
<td>http://sourceforge.net/projects/junit/</td>
324
311
</tr >
325
312
326
313
<tr >
327
314
<td>Version</td>
328
- <td>4.11 </td>
315
+ <td>4.12 </td>
329
316
</tr >
330
317
331
318
<tr >
@@ -347,19 +334,14 @@ options/arguments in your CUI application.</td>
347
334
### Protocol Buffers
348
335
349
336
<table >
350
- <tr >
351
- <td>Code Path</td>
352
- <td><code>lib/protobuf-java.jar</code></td>
353
- </tr >
354
-
355
337
<tr >
356
338
<td>URL</td>
357
339
<td>https://github.com/google/protobuf</td>
358
340
</tr >
359
341
360
342
<tr >
361
343
<td>Version</td>
362
- <td>2.5.0 </td>
344
+ <td>3.0.2 </td>
363
345
</tr >
364
346
365
347
<tr >
@@ -382,19 +364,14 @@ an encoding of structured data.</td>
382
364
### Truth
383
365
384
366
<table >
385
- <tr >
386
- <td>Code Path</td>
387
- <td><code>lib/truth.jar</code></td>
388
- </tr >
389
-
390
367
<tr >
391
368
<td>URL</td>
392
369
<td>https://github.com/google/truth</td>
393
370
</tr >
394
371
395
372
<tr >
396
373
<td>Version</td>
397
- <td>0.24 </td>
374
+ <td>0.30 </td>
398
375
</tr >
399
376
400
377
<tr >
@@ -416,21 +393,14 @@ an encoding of structured data.</td>
416
393
### Ant
417
394
418
395
<table >
419
- <tr >
420
- <td>Code Path</td>
421
- <td>
422
- <code>lib/ant.jar</code>, <code>lib/ant-launcher.jar</code>
423
- </td>
424
- </tr >
425
-
426
396
<tr >
427
397
<td>URL</td>
428
398
<td>http://ant.apache.org/bindownload.cgi</td>
429
399
</tr >
430
400
431
401
<tr >
432
402
<td>Version</td>
433
- <td>1.8.1 </td>
403
+ <td>1.9.7 </td>
434
404
</tr >
435
405
436
406
<tr >
@@ -453,19 +423,14 @@ without make's wrinkles and with the full portability of pure java code.</td>
453
423
### GSON
454
424
455
425
<table >
456
- <tr >
457
- <td>Code Path</td>
458
- <td><code>lib/gson.jar</code></td>
459
- </tr >
460
-
461
426
<tr >
462
427
<td>URL</td>
463
428
<td>https://github.com/google/gson</td>
464
429
</tr >
465
430
466
431
<tr >
467
432
<td>Version</td>
468
- <td>2.2.4 </td>
433
+ <td>2.7 </td>
469
434
</tr >
470
435
471
436
<tr >
0 commit comments