Skip to content

Commit 080271d

Browse files
committed
Add license headers
1 parent a838bfb commit 080271d

File tree

16 files changed

+231
-9
lines changed

16 files changed

+231
-9
lines changed

build.gradle.kts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,6 @@ signing {
9696
}
9797

9898
spotless {
99-
format("misc") {
100-
target("**/.gitattributes", "**/.gitignore")
101-
102-
trimTrailingWhitespace()
103-
leadingTabsToSpaces(4)
104-
endWithNewline()
105-
lineEndings = LineEnding.UNIX
106-
}
107-
10899
java {
109100
target("**/src/**/*.java")
110101

@@ -130,6 +121,24 @@ spotless {
130121
endWithNewline()
131122
lineEndings = LineEnding.UNIX
132123
}
124+
125+
format("yaml") {
126+
target("**/*.yml", "**/*.yaml")
127+
128+
trimTrailingWhitespace()
129+
leadingTabsToSpaces(2)
130+
endWithNewline()
131+
lineEndings = LineEnding.UNIX
132+
}
133+
134+
format("misc") {
135+
target("**/.gitattributes", "**/.gitignore")
136+
137+
trimTrailingWhitespace()
138+
leadingTabsToSpaces(4)
139+
endWithNewline()
140+
lineEndings = LineEnding.UNIX
141+
}
133142
}
134143

135144
// Usage:
@@ -155,6 +164,9 @@ tasks.withType<Jar>().configureEach {
155164
"Created-By" to "Gradle ${gradle.gradleVersion}",
156165
)
157166
}
167+
from("../LICENSE") {
168+
into("META-INF/")
169+
}
158170
}
159171

160172
// Disable doclint to avoid errors and warnings on missing JavaDoc comments.

buildSrc/src/main/kotlin/Versioning.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
import java.io.File
216
import org.gradle.api.Project
317
import org.gradle.api.logging.Logging

src/main/java/io/github/malczuuu/problem4j/core/JsonEscape.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import java.util.HashMap;

src/main/java/io/github/malczuuu/problem4j/core/Problem.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import java.io.Serializable;

src/main/java/io/github/malczuuu/problem4j/core/ProblemBuilder.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import java.net.URI;

src/main/java/io/github/malczuuu/problem4j/core/ProblemBuilderImpl.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import java.net.URI;

src/main/java/io/github/malczuuu/problem4j/core/ProblemException.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
/**

src/main/java/io/github/malczuuu/problem4j/core/ProblemImpl.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import java.net.URI;

src/main/java/io/github/malczuuu/problem4j/core/ProblemStatus.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import java.util.Arrays;

src/test/java/io/github/malczuuu/problem4j/core/JsonEscapeTests.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Damian Malczewski
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* SPDX-License-Identifier: MIT
14+
*/
115
package io.github.malczuuu.problem4j.core;
216

317
import static org.assertj.core.api.Assertions.assertThat;

0 commit comments

Comments
 (0)