forked from alibaba/atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (40 loc) · 1.3 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
buildscript {
repositories {
//本地库,local repository(${user.home}/.m2/repository)
mavenLocal()
jcenter()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
//引入其他的插件
}
}
description = """atlas gradle plugin"""
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
distributionUrl = 'http://services.gradle.org/distributions/gradle-2.12-all.zip'
}
subprojects {
if (!project.getBuildFile().exists()) {
return;
}
def command = project.getGradle().startParameter.toString()
def publishFile = new File(project.getRootDir(),
"publish_" + (command.contains("bintray") ? "bintray" : "mvn") + ".gradle");
if (publishFile.exists()) {
apply from: publishFile.getAbsolutePath()
}
// apply from: new File(project.getRootDir(),
// "publish_local.gradle").getAbsolutePath()
repositories {
//本地库,local repository(${user.home}/.m2/repository)
mavenLocal()
jcenter()
}
group = 'com.taobao.android'
tasks.withType(JavaCompile) {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}