Skip to content

Commit

Permalink
actually using maven
Browse files Browse the repository at this point in the history
  • Loading branch information
codeniko committed Mar 12, 2019
1 parent 1910a37 commit 710590f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ With functional programming aspects found in langauges like Kotlin, Scala, and s
In order to make the library functional programming friendly, JsonPathLite returns *null* rather than throwing exceptions while evaluating a *path* against a JSON object. Throwing exceptions breaks flow control and should be reserved for exceptional errors only.

## Getting started
JsonPathLite is available at the JCenter Repository.
JsonPathLite is available at the Maven Central repository.

**POM**
```xml
Expand All @@ -20,6 +20,11 @@ JsonPathLite is available at the JCenter Repository.

**Gradle**
```gradle
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/groups/public" } // for snapshot builds
}
dependencies {
implementation 'com.nfeld.jsonpathlite:json-path-lite:1.0.0-SNAPSHOT'
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ group 'com.nfeld.jsonpathlite'
version = '1.0.0' + (snapshotVersion ? "-SNAPSHOT" : "")

repositories {
jcenter()
mavenCentral()
}

dependencies {
Expand Down
8 changes: 6 additions & 2 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ publishing {
// publish to local repo
url = uri("$buildDir/repository")
} else {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
if (snapshotVersion) {
url = "https://oss.sonatype.org/content/repositories/snapshots"
} else {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
}
credentials {
username sonatypeUsername
password sonatypePassword
Expand Down Expand Up @@ -107,6 +111,6 @@ if (!publishLocal) {
}

signing {
required { !snapshotVersion }
// required { !snapshotVersion }
sign configurations.archives
}

0 comments on commit 710590f

Please # to comment.