Skip to content

Commit

Permalink
Update docs for 1.3
Browse files Browse the repository at this point in the history
and mention the Eclipse plugin
  • Loading branch information
cushon committed Feb 10, 2017
1 parent 279ccb0 commit 6d372c9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Expand Up @@ -13,7 +13,7 @@
and run it with:

```
java -jar /path/to/google-java-format-1.2-all-deps.jar <options> [files...]
java -jar /path/to/google-java-format-1.3-all-deps.jar <options> [files...]
```

The formatter can act on whole files, on limited lines (`--lines`), on specific
Expand Down Expand Up @@ -42,6 +42,16 @@ files. Until IntelliJ is restarted, the `Reformat code` action will also
There is an [open bug](https://devnet.jetbrains.com/thread/464297) against
IntelliJ to add support for configuring external formatters.

### Eclipse

A [google-java-format Eclipse
plugin](https://github.com/google/google-java-format/releases/tag/google-java-format-1.3)
can be downloaded from the releases page.

The plugin adds a `google-java-format` formatter implementation that can be
configured in `Window > Preferences > Java > Code Style > Formatter > Formatter
Implementation`.

### as a library

The formatter can be used in software which generates java to output more
Expand All @@ -54,15 +64,15 @@ configuration.
<dependency>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
<version>1.2</version>
<version>1.3</version>
</dependency>
```

#### Gradle

```groovy
dependencies {
compile 'com.google.googlejavaformat:google-java-format:1.2'
compile 'com.google.googlejavaformat:google-java-format:1.3'
}
```

Expand Down

0 comments on commit 6d372c9

Please sign in to comment.