forked from notsyncing/qcloudim-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (57 loc) · 1.52 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
plugins {
id "com.jfrog.bintray" version "1.6"
}
group 'io.github.notsyncing.qcloudim'
version '0.1.0'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.39'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.58'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.58'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
javadoc {
options.encoding = "UTF-8"
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier "sources"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
publishing {
publications {
maven(MavenPublication) {
groupId 'io.github.notsyncing.qcloudim'
artifactId 'qcloudim-sdk'
version version
from components.java
artifact sourceJar
artifact javadocJar
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'maven'
name = 'qcloudim-sdk'
licenses = [ 'GPL-3.0' ]
vcsUrl = 'https://github.com/notsyncing/qcloudim.git'
version {
name = version
vcsTag = version
}
}
publications = [ 'maven' ]
}