Skip to content

Commit 50e1a1f

Browse files
committed
Fix gradle publkishPlugin task. Add Travis CI pipeline autodeployment on tag creation.
1 parent a7374a5 commit 50e1a1f

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

.travis.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
env:
2-
- TERM=dumb
3-
2+
matrix:
3+
- TERM=dumb
4+
global:
5+
- secure: o7bQffEMsStS0X7oWJ/i7QWeHoZTqQASLYx0PsfROyTCwVaNnSjuj5jsEIpO2wSppOSVD+tu6LOiCG06XvwWFA79hZh0DzPPq1nbVof4PhScNljYegCG7X6Nihrn38HOj9oxIZ6CJEZPaeyg1OzAPGs0Kir/MDiCcV3W9NDMwHo=
6+
- secure: VHuocNAOIkVh/TcDnTkXQSNBQtstJsCnfsiry4ROk4NCU3TkwkS1VLakhsErwEI1Ri5rl8jSOsYtOUBDfRiJq6nHEg7ilVERz9BVDhTmri6QlQv46OunBDWUrsqJjB1Q6AsEPBl0L1dqTe2RrP3AvmCXglfeFZKoEbWlmDpGSWE=
47
language: groovy
58
jdk: oraclejdk8
6-
79
before_cache:
8-
- bash -c 'for lockFile in $(find ~/.gradle -name "*.lock"); do sudo rm -rf $lockFile ; done'
9-
10+
- bash -c 'for lockFile in $(find ~/.gradle -name "*.lock"); do sudo rm -rf $lockFile
11+
; done'
1012
cache:
1113
directories:
12-
- $HOME/.m2
13-
- $HOME/.gradle
14-
- $HOME/.docker
15-
14+
- "$HOME/.m2"
15+
- "$HOME/.gradle"
16+
- "$HOME/.docker"
1617
addons:
1718
apt:
1819
update: true
1920
packages:
2021
- bash
21-
2222
install: true
2323
script: bash gradlew clean build
24-
25-
after_success: bash gradlew jacocoTestReport coveralls
2624
after_failure: bash gradlew clean check --debug
25+
after_success:
26+
- bash gradlew jacocoTestReport coveralls
27+
# publishing plugin
28+
- test -n "$TRAVIS_TAG" && echo "gradle.publish.key=${GRADLE_PUBLISH_KEY}" >> ~/.gradle/gradle.properties
29+
- test -n "$TRAVIS_TAG" && echo "gradle.publish.secret=${GRADLE_PUBLISH_SECRET}" >> ~/.gradle/gradle.properties
30+
- test -n "$TRAVIS_TAG" && ./gradlew publishPlugin -i

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jgoodiesLooksVersion = '2.2.0'
88
gradleApiVersion = 2.12
99
projectUrl = 'https://github.com/byte-shifter-ltd/soapui-gradle-plugin'
10-
description = 'Gradle plugin for running SoapUI test projects using testrunner'
10+
pluginDescription = 'Gradle plugin for running SoapUI test projects using testrunner'
1111
}
1212
apply from: "$rootDir/gradle/repositories.gradle"
1313
}
@@ -16,8 +16,9 @@ plugins {
1616
id 'groovy'
1717
id 'jacoco'
1818
id 'codenarc'
19+
id 'maven-publish'
1920
id 'com.github.kt3k.coveralls' version '2.8.1'
20-
id 'com.gradle.plugin-publish' version '0.9.7'
21+
id 'com.gradle.plugin-publish' version '0.10.0'
2122
id 'com.github.hierynomus.license' version '0.14.0'
2223
}
2324

gradle/pluginPortal.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
group = 'io.byteshifter'
21
version = "${soapUIVersion}.PRO-SNAPSHOT"
2+
description = project.pluginDescription
3+
group = 'io.byteshifter'
34

45
pluginBundle {
5-
website = "$project.projectUrl"
6+
website = project.projectUrl
67
vcsUrl = "${project.projectUrl}.git"
7-
description = project.description
8+
description = project.pluginDescription
89
tags = [
910
'soapui',
1011
'testing',
1112
'soap',
1213
'rest',
1314
'testrunner',
1415
]
15-
1616
plugins {
1717
soapuiPlugin {
1818
id = "${group}.soapui"
19-
description = displayName = project.description
19+
description = project.pluginDescription
20+
displayName = project.pluginDescription
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)