Skip to content

Commit

Permalink
v0.0.4 and updated README to use Gradle Plugin Portal
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed May 3, 2015
1 parent 79c03b2 commit f539be5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 21 deletions.
25 changes: 7 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,15 @@ This Gradle plugin adds tasks to upload and download translation files from crow
`crowdinDownload` downloads the latest translations and `crowdinUpload` uploads a source file.


## Add to your build.gradle

In your build.gradle's `buildScript` section, add this repository and classpath

buildscript {
repositories {
...
maven {
url "http://dl.bintray.com/mendhak/maven"
}
}
dependencies {
...
classpath group: 'com.mendhak.gradlecrowdin', name: 'crowdin-plugin', version: '0.0.3'
}
}
## Usage

Add this to your build.gradle:

Then apply the plugin
plugins {
id "com.mendhak.gradlecrowdin" version "0.0.4"
}

apply plugin: 'com.mendhak.gradlecrowdin'
For pre-Gradle-2.1, follow the [instructions here](https://plugins.gradle.org/plugin/com.mendhak.gradlecrowdin)

## Download task

Expand Down
35 changes: 32 additions & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.0"
}
}

plugins {
id "com.jfrog.bintray" version "1.1"
}

apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: "com.gradle.plugin-publish"

repositories {
mavenCentral()
Expand All @@ -18,9 +30,11 @@ dependencies {
}

group = 'com.mendhak.gradlecrowdin'
version = '0.0.3'
version = '0.0.4'
project.archivesBaseName='crowdin-plugin'
project.ext.set("version", version)
project.description='Gradle plugin for Crowdin.com, download and upload translation files'


uploadArchives {
repositories {
Expand All @@ -46,7 +60,7 @@ bintray {
pkg {
repo = 'maven'
name = 'gradle-crowdin-plugin'
desc = 'Gradle plugin for Crowdin'
desc = project.description
websiteUrl = 'https://github.com/mendhak/gradle-crowdin-plugin'
issueTrackerUrl = 'https://github.com/mendhak/gradle-crowdin-plugin/issues'
vcsUrl = 'https://github.com/mendhak/gradle-crowdin-plugin.git'
Expand All @@ -56,8 +70,23 @@ bintray {

version {
name = project.version
desc = 'Gradle Crowdin Plugin'
desc = project.description
vcsTag = project.version
}
}
}

pluginBundle {
website = 'https://github.com/mendhak/gradle-crowdin-plugin'
vcsUrl = 'https://github.com/mendhak/gradle-crowdin-plugin.git'
description = project.description
tags = ['android', 'crowdin', 'plugin', 'gradle']

plugins {
CrowdinPlugin {
id = 'com.mendhak.gradlecrowdin'
displayName = project.description
}
}

}

0 comments on commit f539be5

Please sign in to comment.