Build: fail on attempt to include anntations.jar from intellij
This commit is contained in:
@@ -69,6 +69,9 @@ fun Project.intellijUltimatePluginDep(plugin: String) = intellijDep(plugin)
|
||||
fun ModuleDependency.includeJars(vararg names: String, rootProject: Project? = null) {
|
||||
names.forEach {
|
||||
var baseName = it.removeSuffix(".jar")
|
||||
if (baseName == "annotations") {
|
||||
error("Don't use anntations.jar from intellij. Kotlin stdlib already has this annotations.")
|
||||
}
|
||||
if (rootProject != null && rootProject.extra.has("ignore.jar.$baseName")) {
|
||||
return@forEach
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user