Skip to content

Commit e55594a

Browse files
committed
Publish sources
1 parent 15c30d1 commit e55594a

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ This library provide support for STOMP protocol https://stomp.github.io/
66
At now library works only as client for backend with support STOMP, such as
77
NodeJS (stompjs or other) or Spring Boot (SockJS).
88

9+
Add library as gradle dependency
10+
11+
```
12+
repositories {
13+
jcenter()
14+
maven { url "https://jitpack.io" }
15+
}
16+
dependencies {
17+
compile 'com.github.NaikSoftware:StompProtocolAndroid:{latest version}'
18+
}
19+
```
20+
921
## Example backend (Spring Boot)
1022

1123
**WebSocketConfig.groovy**

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.1.0'
99
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}

lib/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'me.tatarka.retrolambda'
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
5+
group='com.github.NaikSoftware'
36

47
android {
58
compileSdkVersion 23
@@ -25,6 +28,7 @@ android {
2528
}
2629
}
2730

31+
2832
dependencies {
2933
compile fileTree(dir: 'libs', include: ['*.jar'])
3034
testCompile 'junit:junit:4.12'
@@ -33,3 +37,12 @@ dependencies {
3337
// Supported transports
3438
provided 'org.java-websocket:Java-WebSocket:1.3.0'
3539
}
40+
41+
task sourcesJar(type: Jar) {
42+
from android.sourceSets.main.java.srcDirs
43+
classifier = 'sources'
44+
}
45+
46+
artifacts {
47+
archives sourcesJar
48+
}

0 commit comments

Comments
 (0)