Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Move plugin version to property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruin0x11 committed May 12, 2018
1 parent 29b1070 commit 9443abf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ buildscript {

val CI = System.getenv("CI") != null

val channel = prop("publishChannel")

plugins {
idea
kotlin("jvm") version "1.2.31"
Expand Down Expand Up @@ -91,10 +89,10 @@ allprojects {
}
}

val versionSuffix = if (channel.isBlank()) "" else "-$channel"
val pluginVersion = System.getenv("pluginVersion") ?: prop("pluginVersion")

project(":") {
version = "0.2"
version = pluginVersion
intellij {
pluginName = "intellij-lsp-server"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pluginVersion=0.3.0
ideaVersion=2018.1.1
buildNumber=SNAPSHOT
publishUsername=user
publishPassword=password
publishChannel=
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description><![CDATA[
Exposes IntelliJ IDEA features through the Language Server Protocol.
]]></description>
<version>0.3.0</version>
<version>@version@</version>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for configuration -->
<idea-version since-build="181"/>
Expand Down

0 comments on commit 9443abf

Please sign in to comment.