File tree Expand file tree Collapse file tree
src/main/java/org/cyclops/structuredcrafting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ buildscript {
1111
1212plugins {
1313 id ' com.matthewprenger.cursegradle' version ' 1.4.0'
14+ id ' com.diffplug.spotless' version ' 5.14.3'
1415}
1516
1617apply plugin : ' net.minecraftforge.gradle'
@@ -288,3 +289,13 @@ idea {
288289 }
289290 }
290291}
292+
293+ spotless {
294+ java {
295+ target ' src/*/java/org/cyclops/**/*.java'
296+
297+ endWithNewline()
298+ trimTrailingWhitespace()
299+ removeUnusedImports()
300+ }
301+ }
Original file line number Diff line number Diff line change @@ -5,3 +5,10 @@ cyclopscore_version=1.12.1-100
55release_type =release
66fingerprint =bd0353b3e8a2810d60dd584e256e364bc3bedd44
77
8+ # Workaround for Spotless bug
9+ # https://github.com/diffplug/spotless/issues/834
10+ org.gradle.jvmargs =--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
11+ --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
12+ --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
13+ --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
14+ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class GeneralConfig extends DummyConfig {
2929 public GeneralConfig () {
3030 super (StructuredCrafting ._instance , "general" );
3131 }
32-
32+
3333 @ Override
3434 public void onRegistered () {
3535 getMod ().putGenericReference (ModBase .REFKEY_CRASH_ON_INVALID_RECIPE , GeneralConfig .crashOnInvalidRecipe );
You can’t perform that action at this time.
0 commit comments