Skip to content

Commit

Permalink
Use gradle changelog plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oowekyala committed Jun 23, 2023
1 parent 66a90d4 commit 79b3835
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@file:Suppress("PropertyName", "LocalVariableName")



plugins {
id("org.jetbrains.intellij") version "1.14.1"
java
id("org.jetbrains.grammarkit") version "2022.3.1"
id("org.jetbrains.changelog") version "2.1.0"
kotlin("jvm") version "1.8.22" // sync with version below
}

Expand Down Expand Up @@ -166,15 +168,14 @@ tasks {
updateSinceUntilBuild.set(true)
//ideaDependencyCachePath.set("deps")
plugins.set(listOf("com.intellij.java"))
// setPlugins("java")
}

/* runIde {
runIde {
// this launches in the sandbox subdir
jvmArgs = listOf("-Xmx2G")
setConfigDirectory(rootProject.projectDir.resolve("sandbox").resolve("config"))
configDir.set(rootProject.projectDir.resolve("sandbox").resolve("config"))
}
*/

buildPlugin {
archiveVersion.set(project.version.toString())
archiveBaseName.set("intellij-javacc")
Expand All @@ -185,12 +186,10 @@ tasks {
}

patchPluginXml {
// todo gradle changelog plugin

val changelog = layout.files("changelog.html").singleFile.readText()

changeNotes.set(changelog)
changeNotes.set(provider { changelog.getLatest().toHTML() })
}

// version.set(project.version)
changelog {
path.set(file("changelog.html").canonicalPath)
}
}

0 comments on commit 79b3835

Please sign in to comment.