-
Notifications
You must be signed in to change notification settings - Fork 137
/
build.gradle
48 lines (40 loc) · 1.16 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
apply plugin: 'groovy'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'com.android.tools.build:gradle:3.5.1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.23.4'
}
group = 'com.google.android.gms'
version = '0.10.4'
apply plugin: 'maven'
repositories {
google()
jcenter()
}
// upload and build in local
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('../repo'))
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
}
// generate zip file for android maven release tool
task packageFiles(type: Zip, dependsOn: 'uploadArchives') {
def groupDir = rootProject.group.replaceAll('\\.', '/')
from("../repo/$groupDir/$rootProject.name/$rootProject.version/")
}