2020-09-13 15:27:42 +08:00
|
|
|
@file:Suppress("UnusedImport")
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("jvm")
|
|
|
|
id("java")
|
|
|
|
`maven-publish`
|
|
|
|
id("com.jfrog.bintray")
|
|
|
|
|
2020-11-12 09:42:18 +08:00
|
|
|
id("org.jetbrains.intellij") version Versions.intellijGradlePlugin
|
2020-09-13 15:27:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven("http://maven.aliyun.com/nexus/content/groups/public/")
|
|
|
|
}
|
|
|
|
|
|
|
|
version = Versions.console
|
|
|
|
description = "IntelliJ plugin for Mirai Console"
|
|
|
|
|
|
|
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
|
|
intellij {
|
2020-11-12 09:42:18 +08:00
|
|
|
version = Versions.intellij
|
2020-09-13 15:27:42 +08:00
|
|
|
isDownloadSources = true
|
|
|
|
updateSinceUntilBuild = false
|
|
|
|
|
|
|
|
setPlugins(
|
2020-12-18 16:36:49 +08:00
|
|
|
"org.jetbrains.kotlin:${Versions.kotlinIntellijPlugin}", // @eap
|
2020-09-19 23:51:53 +08:00
|
|
|
"java"
|
2020-09-13 15:27:42 +08:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.getByName("publishPlugin", org.jetbrains.intellij.tasks.PublishTask::class) {
|
|
|
|
val pluginKey = project.findProperty("jetbrains.hub.key")?.toString()
|
|
|
|
if (pluginKey != null) {
|
|
|
|
logger.info("Found jetbrains.hub.key")
|
|
|
|
setToken(pluginKey)
|
|
|
|
} else {
|
|
|
|
logger.info("jetbrains.hub.key not found")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.intellij.tasks.PatchPluginXmlTask> {
|
|
|
|
sinceBuild("193.*")
|
|
|
|
untilBuild("205.*")
|
2020-09-19 14:50:12 +08:00
|
|
|
pluginDescription("""
|
2020-10-04 22:28:56 +08:00
|
|
|
Plugin development support for <a href='https://github.com/mamoe/mirai-console'>Mirai Console</a>
|
2020-09-19 14:50:12 +08:00
|
|
|
|
|
|
|
<h3>Features</h3>
|
|
|
|
<ul>
|
|
|
|
<li>Inspections for plugin properties, for example, checking PluginDescription.</li>
|
|
|
|
<li>Inspections for illegal calls.</li>
|
|
|
|
<li>Intentions for resolving serialization problems.</li>
|
|
|
|
</ul>
|
|
|
|
""".trimIndent())
|
2020-09-13 15:27:42 +08:00
|
|
|
changeNotes("""
|
2020-12-25 20:45:38 +08:00
|
|
|
See <a href="https://github.com/mamoe/mirai-console/releases">https://github.com/mamoe/mirai-console/releases</a>
|
2020-09-13 15:27:42 +08:00
|
|
|
""".trimIndent())
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-11-12 09:42:18 +08:00
|
|
|
api(`jetbrains-annotations`)
|
|
|
|
api(`kotlinx-coroutines-jdk8`)
|
2020-09-13 15:27:42 +08:00
|
|
|
|
2020-09-17 21:39:34 +08:00
|
|
|
api(project(":mirai-console-compiler-common"))
|
|
|
|
|
2020-11-12 09:42:18 +08:00
|
|
|
compileOnly(`kotlin-compiler`)
|
2020-09-13 15:27:42 +08:00
|
|
|
compileOnly(files("libs/ide-common.jar"))
|
|
|
|
}
|
|
|
|
|
2020-09-19 21:01:04 +08:00
|
|
|
setupPublishing("mirai-console-intellij")
|