mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
Fix release plugin?
This commit is contained in:
32
build.gradle
32
build.gradle
@@ -3,13 +3,13 @@ import com.bmuschko.gradle.docker.tasks.container.*
|
|||||||
import com.bmuschko.gradle.docker.tasks.image.*
|
import com.bmuschko.gradle.docker.tasks.image.*
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
id 'pl.allegro.tech.build.axion-release' version '1.9.0'
|
||||||
id "java"
|
id "java"
|
||||||
id "groovy"
|
id "groovy"
|
||||||
id "jacoco"
|
id "jacoco"
|
||||||
id "osgi"
|
id "osgi"
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id "com.bmuschko.docker-remote-api" version "3.2.1"
|
id "com.bmuschko.docker-remote-api" version "3.2.1"
|
||||||
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.java-lib' version '1.0.5'
|
id 'ru.vyarus.java-lib' version '1.0.5'
|
||||||
@@ -20,6 +20,19 @@ plugins {
|
|||||||
|
|
||||||
group = "com.hierynomus"
|
group = "com.hierynomus"
|
||||||
|
|
||||||
|
scmVersion {
|
||||||
|
tag {
|
||||||
|
prefix = 'v'
|
||||||
|
versionSeparator = ''
|
||||||
|
}
|
||||||
|
hooks {
|
||||||
|
pre 'fileUpdate', [file: 'README.adoc', pattern: { v, c -> /:sshj_version: .*/}, replacement: { v, c -> ":sshj_version: $v" }]
|
||||||
|
pre 'commit'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project.version = scmVersion.version
|
||||||
|
|
||||||
defaultTasks "build"
|
defaultTasks "build"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -65,19 +78,6 @@ license {
|
|||||||
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
|
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
|
||||||
}
|
}
|
||||||
|
|
||||||
scmVersion {
|
|
||||||
tag {
|
|
||||||
prefix = 'v'
|
|
||||||
versionSeparator = ''
|
|
||||||
}
|
|
||||||
hooks {
|
|
||||||
pre 'fileUpdate', [file: 'README.adoc', pattern: { v, c -> /:sshj_version: .*/}, replacement: { v, c -> ":sshj_version: $v" }]
|
|
||||||
pre 'commit'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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) {
|
||||||
@@ -229,8 +229,8 @@ if (project.hasProperty("bintrayUsername") && project.hasProperty("bintrayApiKey
|
|||||||
labels = ["ssh", "sftp", "secure-shell", "network", "file-transfer"]
|
labels = ["ssh", "sftp", "secure-shell", "network", "file-transfer"]
|
||||||
githubRepo = "hierynomus/sshj"
|
githubRepo = "hierynomus/sshj"
|
||||||
version {
|
version {
|
||||||
name = project.version.toString()
|
name = "${->project.version}"
|
||||||
vcsTag = "v${project.version}"
|
vcsTag = "v${->project.version}"
|
||||||
released = new SimpleDateFormat('yyyy-MM-dd\'T\'HH:mm:ss.SSSZZ').format(new Date())
|
released = new SimpleDateFormat('yyyy-MM-dd\'T\'HH:mm:ss.SSSZZ').format(new Date())
|
||||||
gpg {
|
gpg {
|
||||||
sign = true
|
sign = true
|
||||||
|
|||||||
Reference in New Issue
Block a user