-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle
More file actions
128 lines (116 loc) · 4.31 KB
/
build.gradle
File metadata and controls
128 lines (116 loc) · 4.31 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
buildscript {
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath files('lib/pegdown-doclet-gradle-plugin-1.2-SNAPSHOT.jar')
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'idea'
apply plugin: 'ch.raffael.doclets.pegdown'
// apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.7
targetCompatibility = 1.7
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
dependencies {
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.2.0'
provided 'com.google.android:android:4.1.1.4'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'nl.jqno.equalsverifier:equalsverifier:1.6'
testCompile 'com.google.guava:guava:18.0'
testCompile 'com.squareup.okhttp3:mockwebserver:3.2.0'
}
idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
modifyPom {
project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL
scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}
licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
// bintray {
// user = BINTRAY_USER //this usually comes from gradle.properties file in ~/.gradle
// key = BINTRAY_API_KEY //this usually comes from gradle.properties file in ~/.gradle
//
// publications = ['mavenJava'] //When uploading Maven-based publication files
// dryRun = true //Whether to run this as dry-run, without deploying
// publish = true //If version should be auto published after an upload
// pkg {
// repo = 'sixpack-java'
// userOrg = 'seatgeek'
// name = 'sixpack-java'
// desc = 'A java client for the sixpack A/B testing framework'
// websiteUrl = 'https://github.com/seatgeek/sixpack-java'
// issueTrackerUrl = 'https://github.com/seatgeek/sixpack-java/issues'
// vcsUrl = 'https://github.com/seatgeek/sixpack-java.git'
// licenses = ['BSD-2-Clause']
// //labels = ['seatgeek', 'sixpack', 'java']
// publicDownloadNumbers = true
// //Optional version descriptor
// version {
// name = project.version //Bintray logical version name
// desc = 'optional, version-specific description'
// released = 'optional, date of the version release' //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance
// vcsTag = '1.3.0'
// gpg {
// sign = true //Determines whether to GPG sign the files. The default is false
// passphrase = 'passphrase' //Optional. The passphrase for GPG signing'
// }
// mavenCentralSync {
// sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
// user = 'userToken' //OSS user token
// password = 'paasword' //OSS user password
// close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
// }
// }
// }
// }