Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1670 chris 1
buildscript {
2
    repositories {
3
        mavenCentral()
4
        mavenLocal()
5
    }
6
    dependencies {
7
        classpath 'com.android.tools.build:gradle:0.10+'
8
        classpath 'com.github.jtakakura:gradle-robovm-plugin:0.0.8'
9
    }
10
}
11
 
12
allprojects {
13
    apply plugin: "eclipse"
14
    apply plugin: "idea"
15
 
16
    version = '1.0'
17
    ext {
18
        appName = 'crawler'
19
        gdxVersion = '1.0.1'
20
        roboVMVersion = '0.0.12'
21
    }
22
 
23
    repositories {
24
        mavenLocal()
25
        mavenCentral()
26
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
27
        maven { url "https://oss.sonatype.org/content/repositories/releases/" }
28
    }
29
}
30
 
31
project(":desktop") {
32
    apply plugin: "java"
33
 
34
 
35
    dependencies {
36
        compile project(":core")
37
        compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
38
        compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
39
        compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
40
    }
41
}
42
 
43
project(":android") {
44
    apply plugin: "android"
45
 
46
    configurations { natives }
47
 
48
    dependencies {
49
        compile project(":core")
50
        compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
51
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
52
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
53
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
54
        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
55
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
56
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
57
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
58
    }
59
}
60
 
61
project(":ios") {
62
    apply plugin: "java"
63
    apply plugin: "robovm"
64
 
65
    configurations { natives }
66
 
67
    dependencies {
68
        compile project(":core")
69
        compile "org.robovm:robovm-rt:${roboVMVersion}"
70
        compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
71
        compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
72
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
73
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
74
    }
75
}
76
 
77
project(":core") {
78
    apply plugin: "java"
79
 
80
 
81
    dependencies {
82
        compile "com.badlogicgames.gdx:gdx:$gdxVersion"
83
        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
84
    }
85
}
86
 
87
tasks.eclipse.doLast {
88
    delete ".project"
89
}