Skip to content

Commit d76951e

Browse files
committed
Re-add Spotless
1 parent 2407408 commit d76951e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
33
id "architectury-plugin" version "3.4-SNAPSHOT"
44
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
5+
id "com.diffplug.spotless" version "7.0.2" apply false
56
}
67

78
architectury {
@@ -17,6 +18,7 @@ subprojects {
1718
apply plugin: "dev.architectury.loom"
1819
apply plugin: "architectury-plugin"
1920
apply plugin: "maven-publish"
21+
apply plugin: "com.diffplug.spotless"
2022

2123
base {
2224
// Set up a suffixed format for the mod jar names, e.g. `example-fabric`.
@@ -64,4 +66,11 @@ subprojects {
6466
repositories {
6567
}
6668
}
69+
70+
spotless {
71+
def licenseHeader = rootProject.file("HEADER")
72+
java {
73+
licenseHeaderFile(licenseHeader)
74+
}
75+
}
6776
}

neoforge/src/main/java/btw/mixces/animatium/neoforge/command/AnimatiumNeoForgeCommand.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/**
2+
* Animatium
3+
* The all-you-could-want legacy animations mod for modern minecraft versions.
4+
* Brings back animations from the 1.7/1.8 era and more.
5+
* <p>
6+
* Copyright (C) 2024-2025 lowercasebtw
7+
* Copyright (C) 2024-2025 mixces
8+
* Copyright (C) 2024-2025 Contributors to the project retain their copyright
9+
* <p>
10+
* This program is free software: you can redistribute it and/or modify
11+
* it under the terms of the GNU General Public License as published by
12+
* the Free Software Foundation, either version 3 of the License, or
13+
* (at your option) any later version.
14+
* <p>
15+
* This program is distributed in the hope that it will be useful,
16+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
* GNU General Public License for more details.
19+
* <p>
20+
* You should have received a copy of the GNU General Public License
21+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
*/
23+
124
package btw.mixces.animatium.neoforge.command;
225

326
import com.mojang.brigadier.CommandDispatcher;

0 commit comments

Comments
 (0)