forked from dlew/joda-time-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (52 loc) · 1.55 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.3'
}
}
apply plugin: 'android-library'
dependencies {
compile files('library/libs/joda-convert-1.5.jar')
}
android {
compileSdkVersion 15
buildToolsVersion "18.0.1"
sourceSets {
main {
manifest {
srcFile 'library/AndroidManifest.xml'
}
java {
srcDirs = ['library/src']
}
res {
srcDirs = ['library/res']
}
assets {
srcDirs = ['library/assets']
}
resources {
srcDirs = ['library/src']
}
aidl {
srcDirs = ['library/src']
}
renderscript {
srcDirs = ['library/src']
}
}
instrumentTest.setRoot('test/src/test')
}
lintOptions {
lintConfig file("library/lint.xml")
}
}
apply from: 'https://raw.github.com/dlew/gradle-mvn-push/master/gradle-mvn-push.gradle'
task updateTzData(dependsOn:assembleDebug, type: JavaExec) {
main = "org.joda.time.tz.ZoneInfoCompiler"
classpath = files("build/bundles/debug/classes.jar")
systemProperty "org.joda.time.DateTimeZone.Provider", "org.joda.time.tz.UTCProvider"
args "-src", "tzdata", "-dst", "library/res/raw", "africa", "antarctica", "asia", "australasia", "europe", "northamerica", "southamerica", "pacificnew", "etcetera", "backward", "systemv"
}