1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2024-10-17 06:42:47 +02:00
IntelliJ-AceJump/build.gradle.kts
breandan 8e46a5a3e3 Merge branch 'visible-area' of https://github.com/chylex/AceJump into chylex-visible-area
# Conflicts:
#	src/main/kotlin/org/acejump/config/AceConfig.kt
#	src/main/kotlin/org/acejump/config/AceConfigurable.kt
#	src/main/kotlin/org/acejump/config/AceSettings.kt
#	src/main/kotlin/org/acejump/config/AceSettingsPanel.kt
#	src/main/resources/AceResources.properties
2020-11-24 05:46:44 -05:00

66 lines
1.5 KiB
Plaintext
Executable File

import org.jetbrains.changelog.closure
import org.jetbrains.intellij.tasks.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.intellij.tasks.PatchPluginXmlTask
plugins {
idea apply true
kotlin("jvm") version "1.3.72"
id("org.jetbrains.intellij") version "0.6.4"
id("org.jetbrains.changelog") version "0.6.2"
id("com.github.ben-manes.versions") version "0.36.0"
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
kotlinOptions.freeCompilerArgs += "-progressive"
}
named<Zip>("buildPlugin") {
dependsOn("test")
archiveFileName.set("AceJump.zip")
}
withType<RunIdeTask> {
dependsOn("test")
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
withType<PublishTask> {
val intellijPublishToken: String? by project
token(intellijPublishToken)
}
withType<PatchPluginXmlTask> {
sinceBuild("201.6668.0")
changeNotes({ changelog.getLatest().toHTML() })
}
}
changelog {
path = "${project.projectDir}/CHANGES.md"
header = closure { "${project.version}" }
}
dependencies {
// gradle-intellij-plugin doesn't attach sources properly for Kotlin :(
compileOnly(kotlin("stdlib-jdk8"))
// https://github.com/promeG/TinyPinyin
implementation("com.github.promeg:tinypinyin:2.0.3")
}
repositories {
mavenCentral()
jcenter()
}
intellij {
version = "2020.2"
pluginName = "AceJump"
updateSinceUntilBuild = false
setPlugins("java")
}
group = "org.acejump"
version = "3.6.4"