forked from selendroid/selendroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
111 lines (101 loc) · 3.69 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
jcenter()
}
ext.bintrayUser = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
ext.bintrayKey = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
ext.bintrayEnabled = project.bintrayUser && project.bintrayKey
dependencies {
if (bintrayEnabled) {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
}
// Find latest version at https://bintray.com/bintray/jcenter/org.jacoco%3Ajacoco/view
// Remove once this android bug is fixed: https://code.google.com/p/android/issues/detail?id=192875
classpath 'org.jacoco:org.jacoco.core:0.7.5.201505241946'
}
}
apply from: 'properties.gradle'
group = selGroup
task printVersion {
print selVersion
}
allprojects {
repositories {
jcenter()
google()
}
version = selVersion
ext {
// https://bintray.com/android/android-tools/com.android.tools.build.gradle/view
androidBuildToolsGradle = 'com.android.tools.build:gradle:4.2.0'
// https://bintray.com/bintray/jcenter/com.jakewharton.sdkmanager:gradle-plugin
//sdkManager = 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
// https://bintray.com/bintray/jcenter/org.json%3Ajson/20090211/view
json = 'org.json:json:20090211'
seleniumVersion = '2.48.2'
compileSdkVersion = 23
buildToolsVersion = '23.0.0'
minSdkVersion = 10
targetSdkVersion = 16
sourceCompatibilityVersion = 1.7
targetCompatibilityVersion = 1.7
junit = 'junit:junit:4.12'
}
// Bintray script
if (bintrayEnabled) {
apply plugin: 'com.jfrog.bintray'
bintray {
publish = true
configurations = ['published', 'archives']
user = bintrayUser
key = bintrayKey
pkg {
repo = 'maven'
name = "${selGroup}:${selArtifactId}"
// an userOrg of selendroid can be added here
userOrg = 'selendroid'
websiteUrl = selWebsite
issueTrackerUrl = selTracker
vcsUrl = selGit
desc = selDescription
licenses = ['Apache-2.0']
publicDownloadNumbers = true
version {
name = selVersion
desc = selDescription
// https://github.com/bintray/gradle-bintray-plugin#buildgradle
// Uncomment and add maven credentials to sync the artifacts.
/* mavenCentralSync {
sync = true
user = 'userToken' // OSS user token
password = 'paasword' // OSS user password
// 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.
close = '1'
} */
}
}
}
}
configurations {
published
}
/*apply plugin: 'maven'*/
plugins.withType(JavaPlugin) {
configurations {
published
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// Add the sourceJars to non-extractor modules
artifacts {
published sourceJar
published javadocJar
}
}
}