@@ -21,16 +21,12 @@ repositories {
2121
2222// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
2323dependencies {
24- // implementation(libs.annotations )
24+ // implementation(libs.exampleLibrary )
2525}
2626
27- // Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
27+ // Set the JVM language level used to build the project.
2828kotlin {
29- jvmToolchain {
30- languageVersion = JavaLanguageVersion .of(17 )
31- @Suppress(" UnstableApiUsage" )
32- vendor = JvmVendorSpec .JETBRAINS
33- }
29+ jvmToolchain(17 )
3430}
3531
3632// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
@@ -50,10 +46,12 @@ changelog {
5046}
5147
5248// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
53- koverReport {
54- defaults {
55- xml {
56- onCheck = true
49+ kover {
50+ reports {
51+ total {
52+ xml {
53+ onCheck = true
54+ }
5755 }
5856 }
5957}
@@ -73,7 +71,7 @@ tasks {
7371 val start = " <!-- Plugin description -->"
7472 val end = " <!-- Plugin description end -->"
7573
76- with (it.lines()) {
74+ with (it.lines()) {
7775 if (! containsAll(listOf (start, end))) {
7876 throw GradleException (" Plugin description section not found in README.md:\n $start ... $end " )
7977 }
@@ -116,6 +114,6 @@ tasks {
116114 // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
117115 // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
118116 // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
119- channels = properties(" pluginVersion" ).map { listOf (it.split (' -' ).getOrElse( 1 ) { " default" }.split( ' . ' ).first() ) }
117+ channels = properties(" pluginVersion" ).map { listOf (it.substringAfter (' -' , " " ).substringBefore( ' . ' ).ifEmpty { " default" }) }
120118 }
121119}
0 commit comments