Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #36 from palantir/feature/kniktas_plugins
Browse files Browse the repository at this point in the history
Issue #22 Publish to plugins.gradle.org
  • Loading branch information
kostasniktas committed Jan 30, 2016
2 parents 5efa3e0 + 58b452a commit b4e7f09
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CHANGELOG

Future Version
=======
-Breaking: Renamed plugin to com.palantir.flexversion to follow other Palantir plugins.gradle.org naming convention

0.9.0
=======
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ buildscript {
}
}
apply plugin: 'gradle-flexversion'
apply plugin: 'com.palantir.flexversion'
version flexVersion()
```

Expand All @@ -39,7 +39,7 @@ The default usage of Flex Versions picks the branch name as the domain. If the
The `build.gradle` file has the following set up for versioning:

```gradle
apply plugin: 'gradle-flexversion'
apply plugin: 'com.palantir.flexversion'
flexversion {
useTags = true
}
Expand All @@ -66,7 +66,7 @@ If you don't wish to use the branch name as the domain, `flexVersion()` will als
The `build.gradle` file has the following set up for versioning:

```gradle
apply plugin: 'gradle-flexversion'
apply plugin: 'com.palantir.flexversion'
flexversion {
useTags = true
}
Expand Down
22 changes: 22 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: "com.gradle.plugin-publish"

project.ext."gradle.publish.key" = System.env.GRADLE_PUBLISH_KEY
project.ext."gradle.publish.secret" = System.env.GRADLE_PUBLISH_SECRET

repositories {
mavenCentral()
Expand All @@ -14,10 +18,14 @@ buildscript {
maven {
url "http://dl.bintray.com/palantir/releases"
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath "com.palantir:gradle-flexversion:0.8.1"
classpath "com.gradle.publish:plugin-publish-plugin:0.9.3"
}
}

Expand Down Expand Up @@ -86,3 +94,17 @@ test {
workingDir.deleteDir()
workingDir.mkdirs()
}

pluginBundle {
website = "https://github.com/palantir/gradle-flexversion"
vcsUrl = "https://github.com/palantir/gradle-flexversion"
description = "Gradle FlexVersion is a plugin to calculate the flex version of a repo."
tags = ['git', 'version']

plugins {
flexVersionPlugin {
id = 'com.palantir.flexversion'
displayName = "Palantir Gradle Flex Version"
}
}
}

0 comments on commit b4e7f09

Please sign in to comment.