This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (81 loc) · 2.11 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
93
94
95
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1+"
classpath 'org.ajoberstar:gradle-git:1.4.2'
}
}
def VERSION_CODE = '0.0.1'
group 'com.rxc'
version VERSION_CODE
apply plugin: 'java'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'org.ajoberstar.github-pages'
sourceCompatibility = 1.7
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile 'io.reactivex:rxjava:1.0.14'
compile 'reactive-caffeine:reactive-caffeine:1.0.0'
compile 'junit:junit:4.11'
}
bintray {
user = hasProperty('bintrayUser') ? property('bintrayUser') : System.getenv('BINTRAY_USER')
key = hasProperty('bintrayApiKey') ? property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
filesSpec {
from 'build/libs'
into '.'
}
pkg {
repo = 'maven'
name = 'ReactiveCaffeineTesting'
desc = 'Some handy tools for testing RXJava'
licenses = ['Apache-2.0']
vcsUrl = '[email protected]:EanLombardo/ReactiveCaffeineTesting.git'
labels = ['rx', 'java', 'rxjava', 'junit']
publicDownloadNumbers = true
publications = ['MyPublication']
version {
name = VERSION_CODE
desc = ''
vcsTag = VERSION_CODE
}
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'reactive-caffeine'
artifactId 'reactive-caffeine-testing'
version VERSION_CODE
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
githubPages {
repoUri = '[email protected]:EanLombardo/ReactiveCaffeineTesting.git'
pages {
from javadoc
}
}