Add compileOnlyApi dependency for JetBrains annotations
This commit is contained in:
1 parent
7b721490cb
commit
36ac320c9c
1 file changed
+3
@@ -32,6 +32,9 @@ publishing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
// Published as a compile-time dependency, so mods see the API's annotations; never in their lib/.
|
||||||
|
compileOnlyApi(libs.jetbrains.annotations)
|
||||||
|
|
||||||
testImplementation(platform(libs.junit.bom))
|
testImplementation(platform(libs.junit.bom))
|
||||||
testImplementation(libs.junit.jupiter)
|
testImplementation(libs.junit.jupiter)
|
||||||
testRuntimeOnly(libs.junit.platform.launcher)
|
testRuntimeOnly(libs.junit.platform.launcher)
|
||||||
|
|||||||
Reference in new issue
Block a user