Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit 92069ba

Browse files
committed
bintray 등록 스크립트 추가 및 readme 업데이트
1 parent 150bc07 commit 92069ba

File tree

3 files changed

+92
-3
lines changed

3 files changed

+92
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,6 @@ buildNumber.properties
121121

122122

123123
.idea
124+
*.iml
124125

125126
test-*/

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# rxjava-websocket-client
2+
[ ![Download](https://api.bintray.com/packages/jdekim43/maven/rxjava-websocket-client/images/download.svg?version=0.0.1) ](https://bintray.com/jdekim43/maven/rxjava-websocket-client/0.0.1/link)
23

34

45
### 주요기능
@@ -14,7 +15,21 @@
1415

1516
### 사용방법
1617
##### 설치
17-
maven/gradle 추후 지원 예정
18+
##### maven
19+
```
20+
<dependency>
21+
<groupId>kr.jadekim.rxjava</groupId>
22+
<artifactId>rxjava-websocket-client</artifactId>
23+
<version>0.0.1</version>
24+
<type>pom</type>
25+
</dependency>
26+
```
27+
##### gradle
28+
```
29+
compile "kr.jadekim.rxjava:rxjava-websocket-client:$version"
30+
or
31+
implementation "kr.jadekim.rxjava:rxjava-websocket-client:$version"
32+
```
1833

1934
##### 인터페이스 정의
2035
```

build.gradle

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
}
6+
17
plugins {
2-
id 'java'
8+
id "java"
9+
id 'maven'
10+
id 'maven-publish'
11+
id "com.jfrog.bintray" version "1.8.4"
312
}
413

5-
group 'kr.jadekim'
14+
group 'kr.jadekim.rxjava'
615
version '0.0.1'
716

817
sourceCompatibility = 1.6
@@ -11,9 +20,73 @@ repositories {
1120
mavenCentral()
1221
}
1322

23+
task sourcesJar(type: Jar) {
24+
from sourceSets.main.allJava
25+
classifier = 'sources'
26+
}
27+
28+
task javadocJar(type: Jar) {
29+
from javadoc
30+
classifier = 'javadoc'
31+
}
32+
1433
dependencies {
1534
implementation "io.reactivex.rxjava2:rxjava:2.2.4"
1635

1736
compileOnly 'com.squareup.okhttp3:okhttp:3.12.0'
1837
compileOnly 'com.google.code.gson:gson:2.8.5'
38+
}
39+
40+
publishing {
41+
publications {
42+
RxJavaWebSocketClient(MavenPublication) {
43+
from components.java
44+
groupId this.group
45+
artifactId 'rxjava-websocket-client'
46+
artifact sourcesJar
47+
artifact javadocJar
48+
version this.version
49+
pom {
50+
name = "RxJava WebSocket Client"
51+
description = "WebSocket Client with RxJava"
52+
url = "https://github.com/jdekim43/rxjava-websocket-client"
53+
developers {
54+
developer {
55+
id = "jdekim43"
56+
name = "JinYong Kim"
57+
email = "jinyong@jadekim.kr"
58+
}
59+
}
60+
}
61+
}
62+
}
63+
}
64+
65+
bintray {
66+
user = System.getenv('BINTRAY_USER')
67+
key = System.getenv('BINTRAY_KEY')
68+
dryRun = false
69+
publish = true
70+
override = true
71+
publications = ['RxJavaWebSocketClient']
72+
pkg {
73+
repo = 'maven'
74+
name = 'rxjava-websocket-client'
75+
userOrg = 'jdekim43'
76+
licenses = ['MIT']
77+
vcsUrl = 'https://github.com/jdekim43/rxjava-websocket-client.git'
78+
version {
79+
name = this.version
80+
desc = 'WebSocket Client for RxJava2'
81+
released = new Date()
82+
vcsTag = this.version
83+
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
84+
}
85+
}
86+
}
87+
88+
javadoc {
89+
if(JavaVersion.current().isJava9Compatible()) {
90+
options.addBooleanOption('html5', true)
91+
}
1992
}

0 commit comments

Comments
 (0)