diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0908154 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/build.gradle b/build.gradle index af7d381..cf2956a 100644 --- a/build.gradle +++ b/build.gradle @@ -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() diff --git a/src/main/resources/example_mod.mixins.json b/src/main/resources/example_mod.mixins.json index d525ffd..a92cc78 100644 --- a/src/main/resources/example_mod.mixins.json +++ b/src/main/resources/example_mod.mixins.json @@ -10,4 +10,4 @@ "injectors": { "defaultRequire": 1 } -} \ No newline at end of file +}