mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 09:36:19 +00:00
c8c128d335
We'll do this everywhere eventually, but much easier to do it incrementally: - Use checker framework to default all field/methods/parameters to @Nonnull. - Start using ErrorProne[1] and NullAway[2] to check for possible null pointer issues. I did look into using CheckerFramework, but it's much stricter (i.e. it's actually Correct). This is technically good, but is a much steeper migration path, which I'm not sure we're prepared for yet! [1]: https://github.com/google/error-prone [2]: https://github.com/uber/NullAway
29 lines
553 B
Plaintext
29 lines
553 B
Plaintext
plugins {
|
|
id("cc-tweaked.java-convention")
|
|
id("cc-tweaked.publishing")
|
|
id("cc-tweaked.errorprone")
|
|
id("cc-tweaked")
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
}
|
|
|
|
// Due to the slightly circular nature of our API, add the main API jars to the javadoc classpath.
|
|
val docApi by configurations.registering {
|
|
isTransitive = false
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(project(":mc-stubs"))
|
|
compileOnlyApi(libs.jsr305)
|
|
compileOnlyApi(libs.checkerFramework)
|
|
|
|
"docApi"(project(":"))
|
|
}
|
|
|
|
tasks.javadoc {
|
|
// Depend on
|
|
classpath += docApi
|
|
}
|