-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
75 lines (67 loc) · 1.71 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
group 'com.saladevs'
version '0.2.0'
buildscript {
ext {
kotlin_version = '1.2.30'
rxjava_version = '2.1.10'
okhttp_version = '3.10.0'
bintray_version = '1.8.0'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "io.reactivex.rxjava2:rxjava:$rxjava_version"
compile "com.squareup.okhttp3:okhttp:$okhttp_version"
}
compileKotlin { kotlinOptions.jvmTarget = '1.6' }
compileTestKotlin { kotlinOptions.jvmTarget = '1.6' }
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
jar.dependsOn(sourcesJar)
bintray {
user = BINTRAY_USER
key = BINTRAY_KEY
configurations = ['archives']
publications = ['myPublication']
pkg {
repo = 'RxSSE'
name = 'RxSSE'
userOrg = 'saladevs'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/EnricSala/RxSSE.git'
version {
name = '0.2.0'
desc = 'Minor improvements'
released = new Date()
vcsTag = 'v0.2.0'
}
}
}
publishing {
publications {
myPublication(MavenPublication) {
from components.java
artifact sourcesJar
groupId 'com.saladevs'
artifactId 'rxsse'
version '0.2.0'
}
}
}