summaryrefslogtreecommitdiff
path: root/build.gradle
blob: 2e3ce0c8424ccf7b187e089e0b1645b6c2471003 (plain)
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
import au.com.coherentsoftware.gradle.mercurial.task.*

buildscript {
    repositories {
        mavenCentral()
	jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.9.+'
        classpath 'au.com.coherentsoftware.gradle:Gradle-MercurialMqPlugin:1.1.0+'
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

apply plugin: 'mercurial-mq'

task cloneIcsOpenVPN( type: HgClone ) {
     ext.srcFile = file('build.gradle')
     ext.destDir = new File('.', 'ics-openvpn')
     inputs.file srcFile
     outputs.dir destDir
     
     sourceUrl = 'https://code.google.com/p/ics-openvpn/'
}

task updateIcsOpenVPN( type: HgUpdate, dependsOn: 'pullIcsOpenVPN' ) {
     workingDir = 'ics-openvpn'
     branch = 'default'
}

task pullIcsOpenVPN( type: HgPull ) {
     sourceUrl = 'https://code.google.com/p/ics-openvpn/'
     workingDir = 'ics-openvpn'
}

task copyIcsOpenVPNClasses( type: Copy ) {
     from 'ics-openvpn/main'
     into 'app'
     include '**/*.java'
     include '**/*.aidl'
}