forked from linkedin/test-butler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (49 loc) · 1.56 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
import com.linkedin.gradle.DistributeTask
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0"
}
}
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
allprojects {
group = GROUP_ID
}
ext {
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
minSdkVersion = 14
targetSdkVersion = 27
supportLibrariesVersion = '27.1.1'
}
artifactoryPublish.skip = true
artifactory {
contextUrl = 'https://linkedin.jfrog.io/linkedin'
publish {
repository {
repoKey = 'test-butler'
username = System.getenv('ARTIFACTORY_USER') ?: ""
password = System.getenv('ARTIFACTORY_KEY') ?: ""
ivy {
ivyLayout = "[organisation]/[module]/[revision]/[module]-[revision].ivy"
artifactLayout = "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
mavenCompatible = true
}
}
defaults {
publications 'apk', 'lib', 'ivyLib', 'ivyApk'
}
publishArtifacts = true
}
clientConfig.setIncludeEnvVars(false)
}
task distributeBuild(type: DistributeTask) {
dependsOn ':artifactoryPublish', 'test-butler-app:artifactoryPublish', 'test-butler-library:artifactoryPublish'
}