mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
Using new release plugin
This commit is contained in:
13
build.gradle
13
build.gradle
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user