Skip to content

Commit

Permalink
maven preparing
Browse files Browse the repository at this point in the history
  • Loading branch information
PenzK committed Apr 10, 2015
1 parent 2587b3e commit 0b5ca5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Check this [project on Behance] (https://www.behance.net/gallery/20411445/Mobile
*For a working implementation, have a look at the ```app``` module*

#### 1. Clone repository and add sources into your project or use Gradle:
``` compile 'com.yalantis:contextmenu:1.0.2' ```
``` compile 'com.yalantis:contextmenu:1.0.3' ```
#### 2. Create list of `MenuObject`, which consists of icon or icon and description.
You can use any `resource, bitmap, drawable, color` as image:
```
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=1.0.2
VERSION_CODE=3
VERSION_NAME=1.0.3
VERSION_CODE=4
GROUP=com.yalantis

POM_DESCRIPTION=Android Library to display awesome context menu
Expand Down
7 changes: 6 additions & 1 deletion mavenpush.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
apply plugin: 'maven'
apply plugin: 'signing'

def isReleaseBuild() {
//return VERSION_NAME.contains("SNAPSHOT") == false
return true
}

def sonatypeRepositoryUrl
if (isReleaseBuild()) {
println 'RELEASE BUILD'
Expand All @@ -9,7 +14,7 @@ if (isReleaseBuild()) {
} else {
println 'DEBUG BUILD'
sonatypeRepositoryUrl = hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
: "https://oss.sonatype.org/content/repositories/snapshots/"
}

def getRepositoryUsername() {
Expand Down

0 comments on commit 0b5ca5d

Please sign in to comment.