Using new release plugin

This commit is contained in:
Jeroen van Erp
2017-10-16 12:38:55 +02:00
parent a1f501a027
commit b41f0acd19

View File

@@ -5,7 +5,7 @@ plugins {
id "groovy" id "groovy"
id "osgi" id "osgi"
id "maven-publish" id "maven-publish"
id "org.ajoberstar.release-opinion" version "1.4.2" id 'pl.allegro.tech.build.axion-release' version '1.8.1'
id "com.github.hierynomus.license" version "0.12.1" id "com.github.hierynomus.license" version "0.12.1"
id "com.jfrog.bintray" version "1.7" id "com.jfrog.bintray" version "1.7"
id 'ru.vyarus.pom' version '1.0.3' id 'ru.vyarus.pom' version '1.0.3'
@@ -59,14 +59,15 @@ license {
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java']) excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
} }
if (project.file('.git').isDirectory()) { scmVersion {
release { tag {
grgit = org.ajoberstar.grgit.Grgit.open(project.projectDir) prefix = 'v'
versionSeparator = ''
} }
} else {
version = "0.0.0-no.git"
} }
project.version = scmVersion.version
// This disables the pedantic doclint feature of JDK8 // This disables the pedantic doclint feature of JDK8
if (JavaVersion.current().isJava8Compatible()) { if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) { tasks.withType(Javadoc) {