50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
fun properties(key: String) = project.findProperty(key).toString()
|
|
|
|
plugins {
|
|
id("org.jetbrains.intellij") version "1.3.0"
|
|
id("org.jetbrains.kotlin.jvm") version "1.5.10"
|
|
}
|
|
|
|
group = properties("pluginGroup")
|
|
version = properties("pluginVersion")
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
intellij {
|
|
pluginName.set(properties("pluginName"))
|
|
version.set(properties("platformVersion"))
|
|
}
|
|
tasks.getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
|
|
changeNotes.set("""
|
|
<h3>[1.2]</h3>
|
|
|
|
<ul>
|
|
<li>Single New menu action to access filename template configurations</li>
|
|
<li>Simplify template configuration with placeholder auto completion</li>
|
|
<li>New templates are active by default</li>
|
|
<li>Combine name and description into title</li>
|
|
</ul>
|
|
|
|
<h3>[1.1]</h3>
|
|
|
|
<ul>
|
|
<li>Placeholders for: date, hostname, project name, username, sequential numbers, and caret position</li>
|
|
</ul>
|
|
|
|
<h3>[1.0]</h3>
|
|
|
|
<ul>
|
|
<li>Initial release</li>
|
|
</ul>
|
|
""")
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|