Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ Also, metadata can be associated with stream or RSocket itself

```groovy
dependencies {
compile 'io.rsocket.android:rsocket-core:0.9-SNAPSHOT'
compile 'io.rsocket.kotlin:rsocket-core:0.9-SNAPSHOT'
}
```
### Transports
`Netty` based Websockets and TCP transport (`Client` and `Server`)
`OkHttp` based Websockets transport (`Client` only)
```groovy
dependencies {
compile 'io.rsocket.android:rsocket-transport-netty:0.9-SNAPSHOT'
compile 'io.rsocket.android:rsocket-transport-okhttp:0.9-SNAPSHOT'
compile 'io.rsocket.kotlin:rsocket-transport-netty:0.9-SNAPSHOT'
compile 'io.rsocket.kotlin:rsocket-transport-okhttp:0.9-SNAPSHOT'
}
```
### Usage
Expand All @@ -51,16 +51,16 @@ Stream Metadata is optional
val request = PayloadImpl.textPayload("data")
```
#### Interactions
Fire and Forget
`RSocket.fireAndForget(payload: Payload): Completable`
Request-Response
`RSocket.requestResponse(payload: Payload): Single<Payload>`
Request-Stream
`RSocket.requestStream(payload: Payload): Flowable<Payload>`
Request-Channel
`RSocket.requestChannel(payload: Publisher<Payload>): Flowable<Payload>`
Metadata-Push
`fun metadataPush(payload: Payload): Completable`
Fire and Forget
`RSocket.fireAndForget(payload: Payload): Completable`
Request-Response
`RSocket.requestResponse(payload: Payload): Single<Payload>`
Request-Stream
`RSocket.requestStream(payload: Payload): Flowable<Payload>`
Request-Channel
`RSocket.requestChannel(payload: Publisher<Payload>): Flowable<Payload>`
Metadata-Push
`fun metadataPush(payload: Payload): Completable`

#### Client
Client is initiator of `Connections`
Expand Down
123 changes: 56 additions & 67 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ subprojects {
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.jfrog.artifactory'

group = 'io.rsocket.android'
group = 'io.rsocket.kotlin'
version = '0.9-SNAPSHOT'

task sourcesJar(type: Jar, dependsOn: classes) {
Expand All @@ -42,9 +40,6 @@ subprojects {
from javadoc.destinationDir
}

tasks.bintrayUpload.dependsOn tasks.jar, tasks.sourcesJar, tasks.javadocJar

// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar, jar
}
Expand Down Expand Up @@ -82,81 +77,75 @@ subprojects {
}
}
}
}

artifactory {
publish {
contextUrl = 'https://oss.jfrog.org'

repository {
repoKey = 'oss-snapshot-local'
//The Artifactory repository key to publish to
//when using oss.jfrog.org the credentials are from Bintray.
// For local build we expect them to be found in
//~/.gradle/gradle.properties, otherwise to be set in the build server
// Conditionalize for the users who don't have bintray credentials setup
if (project.hasProperty('bintrayUser')) {
username = project.property('bintrayUser')
password = project.property('bintrayKey')
if (project.hasProperty('bintrayUser') && project.hasProperty('bintrayKey')) {

subprojects {
plugins.withId('com.jfrog.bintray') {
bintray {
user = project.property('bintrayUser')
key = project.property('bintrayKey')

publications = ['maven']
publish = true

pkg {
repo = 'RSocket'
name = 'rsocket-kotlin'
licenses = ['Apache-2.0']

issueTrackerUrl = 'https://github.com/rsocket/rsocket-kotlin/issues'
websiteUrl = 'https://github.com/rsocket/rsocket-kotlin'
vcsUrl = 'https://github.com/rsocket/rsocket-kotlin.git'
githubRepo = 'rsocket/rsocket-kotlin'
githubReleaseNotesFile = 'README.md'

version {
name = project.version
released = new Date()
vcsTag = project.version

gpg {
sign = true
}

mavenCentralSync {
user = project.property('sonatypeUsername')
password = project.property('sonatypePassword')
}
}
}
}

publications('mavenJava')

defaults {
// Reference to Gradle publications defined in the build script.
// This is how we tell the Artifactory Plugin which artifacts should be
// published to Artifactory.
publications('mavenJava')
publishArtifacts = true
}
tasks.bintrayUpload.dependsOn tasks.jar, tasks.sourcesJar, tasks.javadocJar
}
}

artifactoryPublish {
dependsOn jar
}
plugins.withId('com.jfrog.artifactory') {
artifactory {
publish {
contextUrl = 'https://oss.jfrog.org'

bintray {
if (project.hasProperty('bintrayUser')) {
user = project.property('bintrayUser')
key = project.property('bintrayKey')
}
publications = ['mavenJava']
dryRun = false
publish = true
override = false
pkg {
repo = 'RSocket'
name = 'rsocket-android'
desc = 'RSocket'
websiteUrl = 'https://github.com/rsocket/rsocket-android'
issueTrackerUrl = 'https://github.com/rsocket/rsocket-android'
vcsUrl = 'https://github.com/rsocket/rsocket-android.git'
licenses = ['Apache-2.0']
githubRepo = 'rsocket/rsocket-android' //Optional Github repository
githubReleaseNotesFile = 'README.md' //Optional Github readme file
if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
def sonatypeUsername = project.property('sonatypeUsername')
def sonatypePassword = project.property('sonatypePassword')
version {
name = "v${project.version}"
vcsTag = "${project.version}"
mavenCentralSync {
sync = false
user = sonatypeUsername
password = sonatypePassword
repository {
repoKey = 'oss-snapshot-local'
username = project.property('bintrayUser')
password = project.property('bintrayKey')
}

defaults {
publications('maven')
}
}
}

artifactoryPublish {
dependsOn jar
}
}
}
}

repositories {
jcenter()
}

description = 'RSocket-Android: stream oriented messaging passing with Reactive Stream semantics, for Android'
description = 'RSocket-kotlin: Reactive Streams over network boundary with Kotlin/Rxjava'

buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
Expand Down
2 changes: 2 additions & 0 deletions rsocket-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.jfrog.artifactory'

targetCompatibility = 1.7
sourceCompatibility = 1.7
Expand Down

This file was deleted.

This file was deleted.

Loading