This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Refactor Maven publication: maven -> maven-publish #398
Closed
+218
−188
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
899ce00
Add .editorconfig for automatic editor configuration
vlsi 2e8cfb7
style: build.gradle.kts, fix indentation in build.gradle.kts (Google …
vlsi fc9c9bb
style: build.gradle.kts, move license header to the top of build.grad…
vlsi 79d34f2
style: build.gradle.kts, remove excessive "configure {" calls
vlsi 484d926
style: build.gradle.kts, use editor-friendly <editor-fold> separator …
vlsi d0de6c9
use lazy API for configuring Checkstyle task: avoid reading google_ch…
vlsi adf9ecb
style: build.gradle.kts, use variable references for integTestSourceS…
vlsi f3d606f
Refactor Maven publication: maven -> maven-publish
vlsi 0ab2c7e
chore: simplify options.compilerArgs configuration
vlsi 45cd6d2
chore: use compileOnly for gradleApi
vlsi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
root = true | ||
|
||
[*] | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
|
||
[{*.sh,gradlew}] | ||
end_of_line = lf | ||
|
||
[{*.bat,*.cmd}] | ||
end_of_line = crlf | ||
|
||
[{*.kts,*.kt}] | ||
max_line_length = 100 | ||
# Google Kotlin code style uses 2 spaces for indentation | ||
# See https://github.com/GoogleCloudPlatform/app-gradle-plugin/pull/398/files#r984944216 | ||
indent_size = 2 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We don't typically check editorconfig into Java projects.
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.
Why's that?
editorconfig is helpful (e.g. "trim whitespace", "configure indentation", and even "import order for java"), so why do you suggest removing it?
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.
This isn't the hill I am planning to die on, but the answer is because nobody on the team that maintains this project uses editorconfig plugins.
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.
Do you use IntelliJ IDEA to edit the code, @elefeint? If so, you are using EditorConfig plugins: https://www.jetbrains.com/help/idea/editorconfig.html
Note that checking in this file would help external contributors (e.g. I edited the code, pressed autoformat shortcut, and EVERYTHING changed). We could have 0-configuration experience (import and it "just works"). Discovering and running
gradlew googleJavaFormat
is just not the norm in the world of IDEs outside of Google.