diff --git a/README.md b/README.md index 9d2aa02..a49798b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ poeditor-gradle =============== [![Build Status](https://travis-ci.org/lukin0110/poeditor-gradle.svg)](https://travis-ci.org/lukin0110/poeditor-gradle) -Plugin for Gradle to download translations from [POEditor API](https://poeditor.com/). +Plugin for Gradle to manage translations from [POEditor API](https://poeditor.com/). Download new translations and +upload new terms. 1. Install ---------- @@ -27,7 +28,7 @@ buildscript { 2. Configure ------------- Add configuration about your POEditor project to the `gradle.build` file. You need an api key and project id from -POEDitor. +POEditor. Example configuration: @@ -48,8 +49,8 @@ Now you're all set to manage your translations. 3. Usage -------- -Initialize your project. After your have created your translation project on POEditor you can can initialize your -project based on your configuration. +After your have created your translation project on POEditor you can can initialize your project based on your c +onfiguration. Initialize: ``` diff --git a/build.gradle b/build.gradle index 9d420ce..d5a4062 100644 --- a/build.gradle +++ b/build.gradle @@ -44,9 +44,11 @@ artifacts { } signing { - sign configurations.archives + if(this.hasProperty('remote')) { + sign configurations.archives + } } - + publishing { publications { maven(MavenPublication) { @@ -65,10 +67,10 @@ def _ossrhPassword = this.properties['ossrhPassword'] uploadArchives { repositories { mavenDeployer { - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } //use: gradle uploadArchives -Premote if(this.hasProperty('remote')){ + beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { authentication(userName: _ossrhUsername, password: _ossrhPassword) }