Skip to content

Commit

Permalink
build.gradle fixed
Browse files Browse the repository at this point in the history
Readme updated
Release 1.0.0
prepared for next development iteration
  • Loading branch information
koral-- committed Jun 29, 2014
1 parent e35af61 commit f0e0430
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ Generation has to be invoked as additional gradle task.
* comments

## Usage
1. Add maven snapshot repository and dependency to the __top-level__ `build.gradle` file.
1. Add dependency to the __top-level__ `build.gradle` file.
Your file should look like this:
```
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven{ url('https://oss.sonatype.org/content/repositories/snapshots')}
}
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
classpath 'com.android.tools.build:gradle:0.12.+'
classpath 'pl.droidsonroids.gradle.localization:android-gradle-localization-plugin:1.0.+'
}
}
Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ uploadArchives
{
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
Expand Down Expand Up @@ -80,3 +81,8 @@ artifacts {
archives sourcesJar
archives javadocsJar
}

signing {
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

0 comments on commit f0e0430

Please sign in to comment.