Skip to content

Commit

Permalink
feat(build): update Gradle version and enable PatchPluginXmlTask #100
Browse files Browse the repository at this point in the history
Updated the Gradle version from 8.7 to 8.10 in gradle.properties. Also, increased the JVM memory allocation for Kotlin daemon and Gradle from 2048m to 2g. In build.gradle.kts, uncommented and enabled the PatchPluginXmlTask block which sets the plugin description, changelog, and change notes.
  • Loading branch information
phodal committed Sep 24, 2024
1 parent 11881c6 commit 8044084
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
50 changes: 25 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ project(":shirelang") {
}
}


project(":plugin") {
apply {
plugin("org.jetbrains.changelog")
Expand Down Expand Up @@ -647,30 +646,6 @@ project(":plugin") {
// // jvmArgs("-Didea.ProcessCanceledException=disabled")
// }
//
// withType<PatchPluginXmlTask> {
// pluginDescription.set(provider { file("description.html").readText() })
//
// changelog {
// version.set(properties("pluginVersion"))
// groups.empty()
// path.set(rootProject.file("CHANGELOG.md").toString())
// repositoryUrl.set(properties("pluginRepositoryUrl"))
// }
//
// val changelog = project.changelog
// // Get the latest available change notes from the changelog file
// changeNotes.set(properties("pluginVersion").map { pluginVersion ->
// with(changelog) {
// renderItem(
// (getOrNull(pluginVersion) ?: getUnreleased())
// .withHeader(false)
// .withEmptySections(false),
//
// Changelog.OutputType.HTML,
// )
// }
// })
// }
//
// withType<PublishPluginTask> {
// dependsOn("patchChangelog")
Expand Down Expand Up @@ -726,6 +701,31 @@ project(":plugin") {
}
}

withType<PatchPluginXmlTask> {
pluginDescription.set(provider { file("description.html").readText() })

changelog {
version.set(properties("pluginVersion"))
groups.empty()
path.set(rootProject.file("CHANGELOG.md").toString())
repositoryUrl.set(properties("pluginRepositoryUrl"))
}

val changelog = project.changelog
// Get the latest available change notes from the changelog file
changeNotes.set(properties("pluginVersion").map { pluginVersion ->
with(changelog) {
renderItem(
(getOrNull(pluginVersion) ?: getUnreleased())
.withHeader(false)
.withEmptySections(false),

Changelog.OutputType.HTML,
)
}
})
}

intellijPlatformTesting {
// Generates event scheme for JetBrains Academy plugin FUS events to `build/eventScheme.json`
runIde.register("buildEventsScheme") {
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platformType = IU
platformVersion = 2024.1

# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 8.7
gradleVersion = 8.10

# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
kotlin.stdlib.default.dependency = false
Expand All @@ -26,4 +26,5 @@ org.gradle.caching = true

javaVersion = 17

kotlin.daemon.jvmargs=-Xmx2048m
kotlin.daemon.jvmargs=-Xmx2g
org.gradle.jvmargs =-Xmx2g

0 comments on commit 8044084

Please sign in to comment.