-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
66 lines (54 loc) · 1.42 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
buildscript {
repositories {
//使用阿里的maven镜像
maven { url 'https://maven.aliyun.com/repository/public'}
mavenCentral()
jcenter()
}
dependencies {
//引入bintray插件
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
}
}
plugins {
id 'java'
id 'java-library'
}
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.StarteosIO'
version = '1.0.7'
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html4', true)
}
}
task classesJar(type: Jar) {
from "$buildDir/intermediates/classes/release"
}
artifacts {
archives classesJar
archives javadocJar
archives sourcesJar
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public'}
mavenCentral()
google()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'com.google.code.gson:gson:2.6.2'
implementation 'com.google.crypto.tink:tink-android:1.2.1'
implementation 'com.google.guava:guava:23.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
}