1+ @file:Suppress(" ConvertLambdaToReference" )
2+
13import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
24
35plugins {
4- id(" org.jetbrains.intellij" ) version " 0.4.26 "
5- kotlin(" jvm" ) version " 1.4.20-M1 "
6+ id(" org.jetbrains.intellij" ) version " 1.6.0 "
7+ kotlin(" jvm" ) version " 1.7.0-RC2 "
68}
79
810group = " com.github.lppedd"
911version = " 0.1.2"
1012
1113repositories {
12- maven(" https://dl.bintray.com/kotlin/kotlin-eap" )
1314 mavenCentral()
1415}
1516
1617intellij {
17- version = " IU-2019.2"
18- downloadSources = true
19- pluginName = " idea-conventional-commit-commitlint"
20- setPlugins(" com.github.lppedd.idea-conventional-commit:0.15.3" )
18+ type.set(" IU" )
19+ version.set(" 2019.2" )
20+ downloadSources.set(true )
21+ pluginName.set(" idea-conventional-commit-commitlint" )
22+ plugins.set(listOf (" com.github.lppedd.idea-conventional-commit:0.15.3" ))
2123}
2224
2325dependencies {
24- compileOnly(kotlin(" stdlib-jdk8" , " 1.4.20-M1 " ))
26+ compileOnly(kotlin(" stdlib-jdk8" , " 1.7.0-RC2 " ))
2527}
2628
2729tasks {
@@ -38,10 +40,12 @@ tasks {
3840 compileTestKotlin(kotlinOptions)
3941
4042 patchPluginXml {
41- version(project.version)
42- sinceBuild(" 192" )
43- untilBuild(null )
44- pluginDescription(File (" plugin-description.html" ).readText(Charsets .UTF_8 ))
45- changeNotes(File (" change-notes/${version.replace(' .' , ' _' )} .html" ).readText(Charsets .UTF_8 ))
43+ version.set(project.version.toString())
44+ sinceBuild.set(" 192" )
45+ untilBuild.set(null as String? )
46+
47+ val projectPath = projectDir.path
48+ pluginDescription.set((File (" $projectPath /plugin-description.html" ).readText(Charsets .UTF_8 )))
49+ changeNotes.set((File (" $projectPath /change-notes/${version.get().replace(' .' , ' _' )} .html" ).readText(Charsets .UTF_8 )))
4650 }
4751}
0 commit comments