Skip to content

Commit 0adb407

Browse files
committed
Add headers
1 parent e9c8e8e commit 0adb407

19 files changed

+469
-0
lines changed

HEADER

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id("fabric-loom") version "1.12-SNAPSHOT"
33
id("maven-publish")
4+
id("com.diffplug.spotless") version "8.0.0"
45
}
56

67
class Loader {
@@ -73,3 +74,15 @@ publishing {
7374
repositories {
7475
}
7576
}
77+
78+
spotless {
79+
val licenseHeader = rootProject.file("HEADER")
80+
lineEndings = com.diffplug.spotless.LineEnding.UNIX
81+
java {
82+
licenseHeaderFile(licenseHeader)
83+
}
84+
85+
kotlin {
86+
licenseHeaderFile(licenseHeader)
87+
}
88+
}

src/main/java/org/visuals/legacy/lightconfig/lib/ConfigTranslate.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib;
226

327
import net.minecraft.network.chat.Component;

src/main/java/org/visuals/legacy/lightconfig/lib/v1/Config.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1;
226

327
import com.google.gson.*;

src/main/java/org/visuals/legacy/lightconfig/lib/v1/ConfigSerializer.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1;
226

327
// TODO

src/main/java/org/visuals/legacy/lightconfig/lib/v1/field/AbstractConfigField.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1.field;
226

327
import com.google.gson.JsonObject;

src/main/java/org/visuals/legacy/lightconfig/lib/v1/field/BooleanConfigField.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1.field;
226

327
import com.google.gson.JsonElement;

src/main/java/org/visuals/legacy/lightconfig/lib/v1/field/EnumConfigField.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1.field;
226

327
import com.google.gson.JsonElement;

src/main/java/org/visuals/legacy/lightconfig/lib/v1/field/GenericConfigField.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1.field;
226

327
import com.google.gson.JsonObject;

src/main/java/org/visuals/legacy/lightconfig/lib/v1/field/NumericConfigField.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* LightConfig
3+
* A config library.
4+
* <p>
5+
* Copyright (C) 2025 lowercasebtw
6+
* Copyright (C) 2025 mixces
7+
* Copyright (C) 2025 Contributors to the project retain their copyright
8+
* <p>
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
* <p>
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
* <p>
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
* <p>
22+
* "MINECRAFT" LINKING EXCEPTION TO THE GPL
23+
*/
24+
125
package org.visuals.legacy.lightconfig.lib.v1.field;
226

327
import com.google.gson.JsonElement;

0 commit comments

Comments
 (0)