forked from opensciencemap/vtm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (61 loc) · 1.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
if (!(new File("$rootDir/appcompat/build.gradle").exists())) {
throw new GradleException('Missing git sub modules!\nPLEASE RUN: "git submodule init && git submodule update"')
}
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.3'
classpath 'com.android.tools.build:gradle:1.0.1'
// for aar/maven stuff
// https://github.com/dcendents/android-maven-plugin
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}
def filterProjects(filter) {
return subprojects.findAll { project -> filter.contains(project.name) }
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
//apply from:'jdee.gradle'
allprojects {
group = 'org.oscim'
version = '0.6.0-SNAPSHOT'
ext.gdxVersion = "1.4.1"
ext.androidBuildVersionTools = "22"
repositories {
maven { url 'https://github.com/hjanetzek/maven-repo/raw/master/' }
mavenCentral()
// Jeo
// maven { url 'http://repo.boundlessgeo.com/main' }
mavenLocal()
// Local andoird repo
maven { url "${System.env.ANDROID_HOME}/extras/android/m2repository" }
}
// create IntelliJ project settings - untested
apply plugin: 'idea'
}
def androidMinSdk() { return 10 }
def androidTargetSdk() { return 21 }
def versionCode() { return 50 }
def versionName() { return version }
subprojects {
// create eclipse project settings
apply plugin: 'eclipse'
task copySettings(type: Copy) {
from "$rootDir/eclipse"
into ".settings"
include '**/*'
}
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
eclipseProject.dependsOn copySettings
// create emacs JDEE project settings
// http://ignatyev-dev.blogspot.de/2013/07/gradle-projects-in-jdee.html
//apply from:'../jdee.gradle'
}