Add .editorconfig

This commit is contained in:
Ennui Langeweile 2022-04-20 17:01:00 -03:00
parent 90e8ac5cf6
commit 9546c62168
No known key found for this signature in database
GPG key ID: 688A9E714BCD13B2
3 changed files with 39 additions and 5 deletions

34
.editorconfig Normal file
View file

@ -0,0 +1,34 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
[*.gradle]
indent_style = tab
[*.java]
indent_style = tab
[*.json]
indent_style = space
indent_size = 2
[quilt.mod.json]
indent_style = tab
tab_width = 2
[*.toml]
indent_style = tab
tab_width = 2
[*.properties]
indent_style = space
indent_size = 2
[.editorconfig]
indent_style = space
indent_size = 4

View file

@ -3,10 +3,6 @@ plugins {
alias(libs.plugins.quilt.loom)
}
// Still required by IDEs such as Eclipse and Visual Studio Code
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.version
group = project.maven_group
@ -53,6 +49,10 @@ tasks.withType(JavaCompile).configureEach {
}
java {
// Still required by IDEs such as Eclipse and Visual Studio Code
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()