File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 22
33import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
44
5+ fun properties (key : String ) = project.findProperty(key).toString()
6+
57plugins {
68 id(" org.jetbrains.intellij" ) version " 1.6.0"
79 kotlin(" jvm" ) version " 1.7.0-RC2"
810}
911
1012group = " com.github.lppedd"
11- version = " 0.1.2"
1213
1314repositories {
1415 mavenCentral()
1516}
1617
1718intellij {
18- type.set(" IU " )
19- version.set(" 2019.2 " )
19+ type.set(properties( " platformType " ) )
20+ version.set(properties( " platformVersion " ) )
2021 downloadSources.set(true )
2122 pluginName.set(" idea-conventional-commit-commitlint" )
2223 plugins.set(listOf (" com.github.lppedd.idea-conventional-commit:0.15.3" ))
@@ -41,7 +42,7 @@ tasks {
4142
4243 patchPluginXml {
4344 version.set(project.version.toString())
44- sinceBuild.set(" 192 " )
45+ sinceBuild.set(properties( " pluginSinceBuild " ) )
4546 untilBuild.set(null as String? )
4647
4748 val projectPath = projectDir.path
Original file line number Diff line number Diff line change 1+ version =0.1.2
2+ platformType =IU
3+ platformVersion =2019.2
4+ pluginSinceBuild =192
15kotlin.code.style =official
You can’t perform that action at this time.
0 commit comments