@@ -7,13 +7,15 @@ plugins {
77 // Java support
88 id(" java" )
99 // Kotlin support
10- id(" org.jetbrains.kotlin.jvm" ) version " 1.6.10 "
10+ id(" org.jetbrains.kotlin.jvm" ) version " 1.7.21 "
1111 // Gradle IntelliJ Plugin
12- id(" org.jetbrains.intellij" ) version " 1.4 .0"
12+ id(" org.jetbrains.intellij" ) version " 1.10 .0"
1313 // Gradle Changelog Plugin
14- id(" org.jetbrains.changelog" ) version " 1.3.1 "
14+ id(" org.jetbrains.changelog" ) version " 2.0.0 "
1515 // Gradle Qodana Plugin
1616 id(" org.jetbrains.qodana" ) version " 0.1.13"
17+ // Gradle Kover Plugin
18+ id(" org.jetbrains.kotlinx.kover" ) version " 0.6.1"
1719}
1820
1921group = properties(" pluginGroup" )
@@ -25,9 +27,8 @@ repositories {
2527}
2628
2729dependencies {
28-
2930 implementation(" org.jetbrains.kotlin:kotlin-stdlib" )
30- implementation(" com.google.code.gson:gson:2.8.6 " )
31+ implementation(" com.google.code.gson:gson:2.8.9 " )
3132 implementation(" com.squareup.okhttp3:okhttp:4.9.1" )
3233}
3334
@@ -45,6 +46,7 @@ intellij {
4546changelog {
4647 version.set(properties(" pluginVersion" ))
4748 groups.set(emptyList())
49+ repositoryUrl.set(properties(" pluginRepositoryUrl" ))
4850}
4951
5052// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
@@ -78,22 +80,25 @@ tasks {
7880
7981 // Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
8082 pluginDescription.set(
81- projectDir.resolve (" README.md" ).readText().lines().run {
83+ file (" README.md" ).readText().lines().run {
8284 val start = " <!-- Plugin description -->"
8385 val end = " <!-- Plugin description end -->"
8486
8587 if (! containsAll(listOf (start, end))) {
8688 throw GradleException (" Plugin description section not found in README.md:\n $start ... $end " )
8789 }
8890 subList(indexOf(start) + 1 , indexOf(end))
89- }.joinToString(" \n " ).run { markdownToHTML(this ) }
91+ }.joinToString(" \n " ).let { markdownToHTML(it ) }
9092 )
9193
9294 // Get the latest available change notes from the changelog file
9395 changeNotes.set(provider {
94- changelog.run {
95- getOrNull(properties(" pluginVersion" )) ? : getLatest()
96- }.toHTML()
96+ with (changelog) {
97+ renderItem(
98+ getOrNull(properties(" pluginVersion" )) ? : getLatest(),
99+ org.jetbrains.changelog.Changelog .OutputType .HTML ,
100+ )
101+ }
97102 })
98103 }
99104
0 commit comments