-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
31 lines (28 loc) · 884 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
//realm数据库
classpath "io.realm:realm-gradle-plugin:2.3.1"
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// 解决编译时无法删除build文件夹(原因:文件夹totoisegit占用)
//task clean(type: Exec) {
// ext.lockhunter = '\"C:\\Program Files\\LockHunter\\LockHunter.exe\"'
// def buildDir = file(new File("build"))
// commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir
//}