@file:Suppress("UnusedImport") plugins { kotlin("jvm") id("java") `maven-publish` id("com.jfrog.bintray") id("org.jetbrains.intellij") version Versions.intellijGradlePlugin } 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 { version = Versions.intellij isDownloadSources = true updateSinceUntilBuild = false setPlugins( "org.jetbrains.kotlin:${Versions.kotlinIntellijPlugin}@eap", "java" ) } 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 { sinceBuild("193.*") untilBuild("205.*") pluginDescription(""" Plugin development support for Mirai Console

Features

""".trimIndent()) changeNotes(""" See https://github.com/mamoe/mirai-console/releases """.trimIndent()) } dependencies { api(`jetbrains-annotations`) api(`kotlinx-coroutines-jdk8`) api(project(":mirai-console-compiler-common")) compileOnly(`kotlin-compiler`) compileOnly(files("libs/ide-common.jar")) } setupPublishing("mirai-console-intellij")