diff --git a/README.md b/README.md index ccf74fb..cac943a 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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' } diff --git a/build.gradle b/build.gradle index 63983b6..fe6f5b7 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ group 'com.nfeld.jsonpathlite' version = '1.0.0' + (snapshotVersion ? "-SNAPSHOT" : "") repositories { - jcenter() + mavenCentral() } dependencies { diff --git a/publish.gradle b/publish.gradle index 6c97a4c..02eae31 100644 --- a/publish.gradle +++ b/publish.gradle @@ -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 @@ -107,6 +111,6 @@ if (!publishLocal) { } signing { - required { !snapshotVersion } +// required { !snapshotVersion } sign configurations.archives } \ No newline at end of file