This repository was archived by the owner on Oct 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
92 lines (81 loc) · 2.14 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
repositories {
jcenter()
}
}
plugins {
id "java"
id 'maven'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.4"
}
group 'kr.jadekim.rxjava'
version '0.0.1'
sourceCompatibility = 1.6
repositories {
mavenCentral()
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
dependencies {
implementation "io.reactivex.rxjava2:rxjava:2.2.4"
compileOnly 'com.squareup.okhttp3:okhttp:3.12.0'
compileOnly 'com.google.code.gson:gson:2.8.5'
}
publishing {
publications {
RxJavaWebSocketClient(MavenPublication) {
from components.java
groupId this.group
artifactId 'rxjava-websocket-client'
artifact sourcesJar
artifact javadocJar
version this.version
pom {
name = "RxJava WebSocket Client"
description = "WebSocket Client with RxJava"
url = "https://github.com/jdekim43/rxjava-websocket-client"
developers {
developer {
id = "jdekim43"
name = "JinYong Kim"
email = "[email protected]"
}
}
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
dryRun = false
publish = true
override = true
publications = ['RxJavaWebSocketClient']
pkg {
repo = 'maven'
name = 'rxjava-websocket-client'
userOrg = 'jdekim43'
licenses = ['MIT']
vcsUrl = 'https://github.com/jdekim43/rxjava-websocket-client.git'
version {
name = this.version
desc = 'WebSocket Client for RxJava2'
released = new Date()
vcsTag = this.version
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}