Skip to content

Commit cf36686

Browse files
authored
Merge pull request #49 from avast/PublishToPluginPortal
Publish to plugin portal
2 parents 38448bf + 08a5eac commit cf36686

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: generic
22

33
sudo: required
44
env:
5-
- DOCKER_VERSION=1.12.1
5+
- DOCKER_VERSION=1.12.3
66
- DOCKER_VERSION=1.11.2
77
- DOCKER_VERSION=1.10.3
88

@@ -24,4 +24,4 @@ script:
2424
- sudo docker run -v $(pwd):/build -v $HOME/.m2:/root/.m2 -v $HOME/.gradle:/root/.gradle -v /var/run/docker.sock:/var/run/docker.sock build-image test --info
2525

2626
after_success:
27-
- test $TRAVIS_PULL_REQUEST == "false" && test "$TRAVIS_TAG" != "" && test $TRAVIS_REPO_SLUG == "avast/docker-compose-gradle-plugin" && test $DOCKER_VERSION == "1.12.1" && sudo docker run -v $(pwd):/build -v $HOME/.m2:/root/.m2 -v $HOME/.gradle:/root/.gradle -v /var/run/docker.sock:/var/run/docker.sock -e "BINTRAY_USER=$BINTRAY_USER" -e "BINTRAY_KEY=$BINTRAY_KEY" build-image bintrayUpload -Pversion="$TRAVIS_TAG" --info
27+
- test $TRAVIS_PULL_REQUEST == "false" && test "$TRAVIS_TAG" != "" && test $TRAVIS_REPO_SLUG == "avast/docker-compose-gradle-plugin" && test $DOCKER_VERSION == "1.12.3" && sudo docker run -v $(pwd):/build -v $HOME/.m2:/root/.m2 -v $HOME/.gradle:/root/.gradle -v /var/run/docker.sock:/var/run/docker.sock -e "BINTRAY_USER=$BINTRAY_USER" -e "BINTRAY_KEY=$BINTRAY_KEY" -e "GRADLE_PORTAL_KEY=$GRADLE_PORTAL_KEY" -e "GRADLE_PORTAL_SECRET=$GRADLE_PORTAL_SECRET" build-image bintrayUpload publishPlugins -Pversion="$TRAVIS_TAG" --info

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ buildscript {
3434
apply plugin: 'java'
3535
apply plugin: 'docker-compose'
3636
37+
// Or use the new Gradle Portal plugins:
38+
// plugins {
39+
// id 'com.avast.gradle.docker-compose' version "$versionHere"
40+
// }
41+
3742
dockerCompose.isRequiredBy(test) // hooks 'dependsOn composeUp' and 'finalizedBy composeDown'
3843
3944
dockerCompose {

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
buildscript {
22
repositories {
33
jcenter()
4+
maven { url 'https://plugins.gradle.org/m2/' }
45
}
56
dependencies {
67
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
8+
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.6'
79
}
810
}
911
apply plugin: 'com.jfrog.bintray'
1012

1113
apply plugin: 'groovy'
1214
apply plugin: 'java'
1315
apply plugin: 'maven'
16+
apply plugin: 'com.gradle.plugin-publish'
1417

1518
sourceCompatibility = '1.8'
1619
targetCompatibility = '1.8'
@@ -67,3 +70,18 @@ bintray {
6770
}
6871
}
6972
}
73+
74+
project.ext.set('gradle.publish.key', System.getenv('GRADLE_PORTAL_KEY'))
75+
project.ext.set('gradle.publish.secret', System.getenv('GRADLE_PORTAL_SECRET'))
76+
pluginBundle {
77+
website = 'https://github.com/avast/docker-compose-gradle-plugin'
78+
vcsUrl = 'https://github.com/avast/docker-compose-gradle-plugin'
79+
description = 'Simplifies usage of Docker Compose for integration testing in Gradle environment.'
80+
tags = ['docker', 'docker-compose', 'gradle']
81+
plugins {
82+
dockerComposePlugin {
83+
id = 'com.avast.gradle.docker-compose'
84+
displayName = 'Gradle Docker Compose plugin'
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)