Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
gayanper committed Aug 27, 2020
1 parent 50d448c commit ff5c37c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
@@ -1,4 +1,7 @@
#!groovy
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

// The above triggers groovy syntax highlighting in vim

plugins {
Expand All @@ -20,6 +23,9 @@ apply plugin: 'idea'

group = 'org.sonarsource.sonarlint_uo.intellij'
description = 'SonarLint (unofficial) for IntelliJ IDEA'
if(version.toString().endsWith("SNAPSHOT")) {
version = version.toString().replace("SNAPSHOT", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMdd.HH.mm.ss.SSS")))
}

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down Expand Up @@ -177,7 +183,7 @@ bintray {
name = intellij.pluginName
setLicenses("LGPL-3.0")
userOrg = System.getenv("BINTRAY_USER")
vcsUrl = "https://github.com/gayanper/${intellij.pluginName}"
vcsUrl = "https://github.com/gayanper/sonarlint-intellij"
version {
name = version.toString()
}
Expand Down

0 comments on commit ff5c37c

Please sign in to comment.