@@ -3,12 +3,12 @@ import com.bmuschko.gradle.docker.tasks.container.*
33import com.bmuschko.gradle.docker.tasks.image.*
44
55plugins {
6- id ' pl.allegro.tech.build.axion-release' version ' 1.9.0'
76 id " java"
87 id " groovy"
98 id " jacoco"
109 id " osgi"
1110 id " maven-publish"
11+ id ' pl.allegro.tech.build.axion-release' version ' 1.9.0'
1212 id " com.bmuschko.docker-remote-api" version " 3.2.1"
1313 id " com.github.hierynomus.license" version " 0.12.1"
1414 id " com.jfrog.bintray" version " 1.7"
@@ -229,8 +229,8 @@ if (project.hasProperty("bintrayUsername") && project.hasProperty("bintrayApiKey
229229 labels = [" ssh" , " sftp" , " secure-shell" , " network" , " file-transfer" ]
230230 githubRepo = " hierynomus/sshj"
231231 version {
232- name = " ${ -> project.version} "
233- vcsTag = " v${ -> project.version} "
232+ name = " ${ project.version} "
233+ vcsTag = " v${ project.version} "
234234 released = new SimpleDateFormat (' yyyy-MM-dd\' T\' HH:mm:ss.SSSZZ' ). format(new Date ())
235235 gpg {
236236 sign = true
@@ -275,10 +275,15 @@ task stopItestContainer(type: DockerStopContainer) {
275275 targetContainerId { createItestContainer. getContainerId() }
276276}
277277
278+ task forkedUploadRelease (type : GradleBuild ) {
279+ buildFile = project. buildFile
280+ tasks = [" bintrayUpload" ]
281+ }
282+
278283project. tasks. integrationTest. dependsOn(startItestContainer)
279284project. tasks. integrationTest. finalizedBy(stopItestContainer)
280285
281286project. tasks. release. dependsOn([project. tasks. integrationTest, project. tasks. build])
282- project. tasks. release. finalizedBy(project. tasks. bintrayUpload )
287+ project. tasks. release. finalizedBy(project. tasks. forkedUploadRelease )
283288project. tasks. jacocoTestReport. dependsOn(project. tasks. test)
284289project. tasks. check. dependsOn(project. tasks. jacocoTestReport)
0 commit comments