Skip to content

Commit 082bf52

Browse files
committed
Add missing license headers, switch to spotless for license header
handling
1 parent 4d0c5a8 commit 082bf52

81 files changed

Lines changed: 1176 additions & 30 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

HEADER

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
Copyright (C) 2016, 2018 Player, asie
1+
/*
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) $YEAR, FabricMC
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
218

3-
This program is free software: you can redistribute it and/or modify
4-
it under the terms of the GNU Lesser General Public License as published by
5-
the Free Software Foundation, either version 3 of the License, or
6-
(at your option) any later version.
7-
8-
This program is distributed in the hope that it will be useful,
9-
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
GNU Lesser General Public License for more details.
12-
13-
You should have received a copy of the GNU Lesser General Public License
14-
along with this program. If not, see <http://www.gnu.org/licenses/>.

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'java'
33
id 'maven-publish'
44
id 'checkstyle'
5+
id 'com.diffplug.spotless' version '5.14.2'
56
id 'com.github.johnrengelman.shadow' version '6.1.0'
67
}
78

@@ -67,6 +68,14 @@ checkstyle {
6768
toolVersion = '8.31'
6869
}
6970

71+
spotless {
72+
ratchetFrom 'origin/master'
73+
74+
java {
75+
licenseHeaderFile(rootProject.file('HEADER')).yearSeparator(', ')
76+
}
77+
}
78+
7079
publishing {
7180
publications {
7281
mavenJava(MavenPublication) {

src/main/java/net/fabricmc/tinyremapper/AsmClassRemapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2018, 2021, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/AsmRemapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2018, 2021, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/BridgeHandler.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2020, 2021, FabricMC
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
119
package net.fabricmc.tinyremapper;
220

321
import org.objectweb.asm.ClassVisitor;

src/main/java/net/fabricmc/tinyremapper/ClassInstance.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2019, 2021, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/FileSystemHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2019, 2021, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/IMappingProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2016, 2021, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/InputTag.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2020, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2016, 2018 Player, asie
2+
* Copyright (c) 2016, 2018, Player, asie
3+
* Copyright (c) 2016, 2021, FabricMC
34
*
45
* This program is free software: you can redistribute it and/or modify
56
* it under the terms of the GNU Lesser General Public License as published by

0 commit comments

Comments
 (0)