Skip to content

Commit

Permalink
Making google-java-format easier to use.
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticmouse committed Jul 24, 2017
1 parent eb386c2 commit c9c006c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
22 changes: 13 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import org.apache.tools.ant.filters.ReplaceTokens

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0'
}
}

plugins {
id 'com.github.sherter.google-java-format' version '0.6'
}

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
Expand All @@ -13,15 +26,6 @@ repositories {
mavenCentral()
}

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0'
}
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/google/maps/internal/DistanceAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public class DistanceAdapter extends TypeAdapter<Distance> {
*
* <pre>
* {
* "value": 207,
"text": "0.1 mi"
* "value": 207, "text": "0.1 mi"
* }
* </pre>
*/
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/google/maps/internal/DurationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public class DurationAdapter extends TypeAdapter<Duration> {
*
* <pre>
* {
* "value": 207,
"text": "0.1 mi"
* "value": 207, "text": "0.1 mi"
* }
* </pre>
*/
Expand Down

0 comments on commit c9c006c

Please sign in to comment.