Skip to content

Commit 5850cd2

Browse files
committed
updated readme with mvn release
1 parent 20f66d4 commit 5850cd2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22

33
![Scala CI](https://github.com/adenza/xmlrpc-scala-client/workflows/Scala%20CI/badge.svg)
44
[![codecov](https://codecov.io/gh/adenza/xmlrpc-scala-client/branch/master/graph/badge.svg)](https://codecov.io/gh/adenza/xmlrpc-scala-client)
5+
[![mvn](https://img.shields.io/badge/maven-0.1.0-blue)](https://mvnrepository.com/artifact/com.github.adenza/xmlrpc-scala-client/0.1.0)
56

67
Scala XML-RPC wrapper for apache java library https://ws.apache.org/xmlrpc/
78

89
It allows to work with input and output object with familar case classes.
910

11+
## Installation
12+
13+
```sbt
14+
libraryDependencies += "com.github.adenza" %% "xmlrpc-scala-client" % "0.1.0"
15+
```
16+
17+
## Usage
18+
1019
First define input parameters and expected result:
1120

1221
```scala
@@ -37,7 +46,7 @@ val result: Future[Result] = xmlRpcClient.call[Result]("AddValue", params)
3746

3847
```
3948

40-
Error handling:
49+
## Error handling
4150

4251
```scala
4352
import com.github.adenza.xmlrpc.exceptions._

build.sbt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ scmInfo := Some(
1010
)
1111
)
1212

13+
publishTo := Some(if (version.value.endsWith("SNAPSHOT"))
14+
"Sonatype Snapshots Nexus" at "https://oss.sonatype.org/content/repositories/snapshots"
15+
else
16+
"Sonatype Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
17+
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
18+
1319
scalaVersion := "2.12.11"
1420

1521
crossScalaVersions := Seq(scalaVersion.value, "2.13.1")

0 commit comments

Comments
 (0)