Skip to content

Commit 710590f

Browse files
committed
actually using maven
1 parent 1910a37 commit 710590f

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ With functional programming aspects found in langauges like Kotlin, Scala, and s
77
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.
88

99
## Getting started
10-
JsonPathLite is available at the JCenter Repository.
10+
JsonPathLite is available at the Maven Central repository.
1111

1212
**POM**
1313
```xml
@@ -20,6 +20,11 @@ JsonPathLite is available at the JCenter Repository.
2020

2121
**Gradle**
2222
```gradle
23+
repositories {
24+
mavenCentral()
25+
maven { url "https://oss.sonatype.org/content/groups/public" } // for snapshot builds
26+
}
27+
2328
dependencies {
2429
implementation 'com.nfeld.jsonpathlite:json-path-lite:1.0.0-SNAPSHOT'
2530
}

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ group 'com.nfeld.jsonpathlite'
1515
version = '1.0.0' + (snapshotVersion ? "-SNAPSHOT" : "")
1616

1717
repositories {
18-
jcenter()
18+
mavenCentral()
1919
}
2020

2121
dependencies {

publish.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ publishing {
7979
// publish to local repo
8080
url = uri("$buildDir/repository")
8181
} else {
82-
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
82+
if (snapshotVersion) {
83+
url = "https://oss.sonatype.org/content/repositories/snapshots"
84+
} else {
85+
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
86+
}
8387
credentials {
8488
username sonatypeUsername
8589
password sonatypePassword
@@ -107,6 +111,6 @@ if (!publishLocal) {
107111
}
108112

109113
signing {
110-
required { !snapshotVersion }
114+
// required { !snapshotVersion }
111115
sign configurations.archives
112116
}

0 commit comments

Comments
 (0)