Skip to content

Commit

Permalink
add gradle plugin publishing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed Dec 17, 2016
1 parent 3f128e1 commit b8fa85c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ apply plugin: 'org.ajoberstar.git-publish'

### Configuration

**NOTE:** In general, there are no default values here. The one exception is that the `repoUri` will be automatically set if you use the `org.ajoberstar.grgit` plugin to your project's origin repo URI.
**NOTE:** In general, there are no default values here. The main exception is that the `repoUri` will be automatically set if you use the `org.ajoberstar.grgit` plugin to your project's origin repo URI.

```groovy
gitPublish {
Expand Down
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins {
id 'maven-publish'
id 'com.jfrog.bintray' version '1.7.3'
id 'org.sonarqube' version '2.2.1'
id 'com.gradle.plugin-publish'
}

apply plugin: 'org.ajoberstar.semver-vcs-grgit'
Expand Down Expand Up @@ -67,6 +68,23 @@ publishing {
}
}

pluginBundle {
website = 'https://github.com/ajoberstar/gradle-git-publish'
vcsUrl = 'https://github.com/ajoberstar/gradle-git-publish.git'
description = 'Publishing to Git repositories'
plugins {
publishPlugin {
id = 'org.ajoberstar.git-publish'
displayName = 'Git Publish Plugin'
}
}
mavenCoordinates {
groupId = project.group
artifactId = project.name
version = project.version
}
}

bintray {
user = System.env['BINTRAY_USER']
key = System.env['BINTRAY_KEY']
Expand Down

0 comments on commit b8fa85c

Please sign in to comment.