Skip to content

Commit dbe96ec

Browse files
committed
build: update dependencies
1 parent edbbfba commit dbe96ec

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

build.gradle.kts

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1+
@file:Suppress("ConvertLambdaToReference")
2+
13
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
24

35
plugins {
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

810
group = "com.github.lppedd"
911
version = "0.1.2"
1012

1113
repositories {
12-
maven("https://dl.bintray.com/kotlin/kotlin-eap")
1314
mavenCentral()
1415
}
1516

1617
intellij {
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

2325
dependencies {
24-
compileOnly(kotlin("stdlib-jdk8", "1.4.20-M1"))
26+
compileOnly(kotlin("stdlib-jdk8", "1.7.0-RC2"))
2527
}
2628

2729
tasks {
@@ -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

Comments
 (0)