2022-11-04 21:41:59 +00:00
|
|
|
plugins {
|
|
|
|
id("cc-tweaked.java-convention")
|
|
|
|
id("cc-tweaked.publishing")
|
2022-11-06 10:28:49 +00:00
|
|
|
id("cc-tweaked.errorprone")
|
2022-11-04 21:41:59 +00:00
|
|
|
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)
|
2022-11-06 11:55:26 +00:00
|
|
|
compileOnlyApi(libs.jetbrainsAnnotations)
|
2022-11-04 21:41:59 +00:00
|
|
|
|
|
|
|
"docApi"(project(":"))
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.javadoc {
|
|
|
|
// Depend on
|
|
|
|
classpath += docApi
|
|
|
|
}
|