-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use JSpecify instead of custom annotations. Remove usage of shadowJar due to compatibility issues with JPMS. * Remove lombok as dependency. Migrate to Gradle Kotlin SDL. Use JDK 21.
- Loading branch information
1 parent
0eb081c
commit 0d51ac1
Showing
312 changed files
with
13,607 additions
and
10,835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.gradle | ||
.idea | ||
.DS_Store | ||
build | ||
lib | ||
lib | ||
TODO.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
plugins { | ||
id("java") | ||
id("checkstyle-conventions") | ||
id("spotbugs-conventions") | ||
id("errorprone-conventions") | ||
id("test-conventions") | ||
id("publish-conventions") | ||
} | ||
|
||
group = "dev.nicklasw" | ||
version = "0.15.0-SNAPSHOT" | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_21 | ||
targetCompatibility = JavaVersion.VERSION_21 | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(libs.jackson.core.databind) | ||
implementation(libs.jspecify) | ||
|
||
testImplementation(libs.junit.jupiter.api) | ||
testImplementation(libs.junit.jupiter.params) | ||
testImplementation(libs.mockito.jupiter) | ||
testImplementation(libs.mockito.inline) | ||
|
||
testRuntimeOnly(libs.junit.jupiter.engine) | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
tasks { | ||
javadoc { | ||
options { | ||
// Suppress the warnings | ||
(this as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet") | ||
} | ||
} | ||
} | ||
|
||
tasks.register("code-quality") { | ||
description = "Run Checkstyle, SpotBugs and ErrorProne analysis on both main and test classes" | ||
group = "code-quality" | ||
|
||
dependsOn(tasks.named("checkstyle").get()) | ||
dependsOn(tasks.named("spotbugs").get()) | ||
dependsOn(tasks.named("errorProne").get()) // Only on main classes | ||
} | ||
|
||
tasks.register("cq") { | ||
description = "Alias for code-quality" | ||
group = "code-quality" | ||
|
||
dependsOn(tasks.named("code-quality").get()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
<suppressions> | ||
<suppress files="SuppressFBWarnings\.java" checks="[a-zA-Z0-9]*"/> | ||
</suppressions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.