1+ buildscript {
2+ repositories {
3+ jcenter()
4+ }
5+ }
6+
17plugins {
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 '
615version ' 0.0.1'
716
817sourceCompatibility = 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+
1433dependencies {
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