Get build properties from gradle.properties
This commit is contained in:
parent
54731f658e
commit
379cf0ee16
|
|
@ -1,13 +1,12 @@
|
||||||
|
fun properties(key: String) = project.findProperty(key).toString()
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.intellij") version "1.3.0"
|
id("org.jetbrains.intellij") version "1.3.0"
|
||||||
id("org.jetbrains.kotlin.jvm") version "1.5.10"
|
id("org.jetbrains.kotlin.jvm") version "1.5.10"
|
||||||
}
|
}
|
||||||
|
|
||||||
val pluginVersion: String by project
|
group = properties("pluginGroup")
|
||||||
val platformVersion: String by project
|
version = properties("pluginVersion")
|
||||||
|
|
||||||
group = "de.idetools"
|
|
||||||
version = pluginVersion
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
@ -19,7 +18,8 @@ dependencies {
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
intellij {
|
intellij {
|
||||||
version.set(platformVersion)
|
pluginName.set(properties("pluginName"))
|
||||||
|
version.set(properties("platformVersion"))
|
||||||
}
|
}
|
||||||
tasks.getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
|
tasks.getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
|
||||||
changeNotes.set("""
|
changeNotes.set("""
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
|
|
||||||
|
pluginGroup = de.idetools
|
||||||
|
pluginName = filename_template
|
||||||
pluginVersion = 1.2.0-213
|
pluginVersion = 1.2.0-213
|
||||||
platformVersion = 2021.3
|
platformVersion = 2021.3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user