Skip to content

Commit

Permalink
scrape <change-notes> directly from CHANGES.md and fix acejump#309
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Dec 7, 2019
1 parent 3cae2d4 commit e5de0fa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
23 changes: 17 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
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.61"
id("org.jetbrains.intellij") version "0.4.14"
}

fun fetchChangeNotes() = File("CHANGES.md").readLines().drop(4).takeWhile { !it.startsWith("###") }.let { notes ->
"<![CDATA[$notes<a href=\"https://github.com/acejump/AceJump/blob/master/src/main/resources/META-INF/CHANGES.md\">Release Notes</a> ]]>"
}

tasks {
withType<KotlinCompile> {
Expand All @@ -18,14 +29,14 @@ tasks {
}

withType<PublishTask> {
token(project.findProperty("jbr.token") as String? ?: System.getenv("JBR_TOKEN"))
token(project.findProperty("jbr.token") as String?
?: System.getenv("JBR_TOKEN"))
}
}

plugins {
idea apply true
kotlin("jvm") version "1.3.61"
id("org.jetbrains.intellij") version "0.4.14"
withType<PatchPluginXmlTask> {
sinceBuild("183.*")
changeNotes(fetchChangeNotes())
}
}

dependencies {
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@
See a demo of <a href="https://www.youtube.com/watch?v=8cgy8ITtsJE">AceJump in action</a>!
Simply hit "ctrl+;", type a character, then type the matching character to Ace Jump. ]]>
</description>
<change-notes>
<![CDATA[
Fix a build configuration error affecting plugins which depend on AceJump and tagging issue on DVORAK/QGMLWB keyboards.
<a href="https://github.com/acejump/AceJump/blob/master/CHANGES.md">Release Notes</a> ]]>
</change-notes>

<depends>com.intellij.modules.platform</depends>

<category>Navigation</category>
<vendor url="https://github.com/acejump/AceJump">AceJump</vendor>
<idea-version since-build="182.5107.41"/>

<application-components>
<component>
Expand Down

0 comments on commit e5de0fa

Please sign in to comment.