-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add java code auto reformat to build #13
Conversation
build.gradle
Outdated
@@ -33,5 +39,7 @@ subprojects { | |||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.2' | |||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.2' | |||
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '3.4.6' | |||
|
|||
compile group: "com.google.googlejavaformat", name: "google-java-format", version: "1.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised that it is in the code deps since it should only be needed to run the tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
me too. i'll double check that i have done something dumb here.
You can install https://plugins.jetbrains.com/plugin/8527-google-java-format/ |
* remove connectors tools from /tools * remove deploy docs workflow
this first commit adds the necessary plugin and applies the build rules. i'm still pretty new to gradle so if there's a a better way to do it lmk. i was trying to push more of it into the build.gradle in the root but couldn't figure out how to do it quickly.
the second commit is with all the code auto reformat applied.