Add .editorconfig
This commit is contained in:
parent
90e8ac5cf6
commit
9546c62168
3 changed files with 39 additions and 5 deletions
34
.editorconfig
Normal file
34
.editorconfig
Normal 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
|
|
@ -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()
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue