-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·91 lines (72 loc) · 2.73 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
79
80
81
82
83
84
85
86
87
88
89
90
91
buildscript {
repositories {
mavenCentral()
}
dependencies {
// Git plugin for Gradle
classpath 'org.ajoberstar:gradle-git:0.6.3'
}
}
// Git plugin details at https://github.com/ajoberstar/gradle-git
import org.ajoberstar.gradle.git.tasks.*
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = '1.0.0'
ext {
appName = 'DestinationSol'
gdxVersion = '1.6.4'
roboVMVersion = '1.5.0'
}
repositories {
// Good ole Maven central
mavenCentral()
// Repos for LibGDX
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
// Terasology Artifactory for any shared libs
maven { url "http://artifactory.terasology.org/artifactory/virtual-repo-live" }
}
}
tasks.eclipse.doLast {
delete ".project"
}
cleanIdea.doLast {
new File('DestinationSol.iws').delete()
}
task (fetchAndroid, type: GitClone) {
description = 'Git clones the Android facade source from GitHub'
// Repo name is the dynamic part of the task name
def repo = 'DestSolAndroid'
// Default GitHub account to use. Supply with -PgithubAccount="TargetAccountName" or via gradle.properties
def githubHome = 'MovingBlocks'
def destination = file('android')
// Don't clone this repo if we already have a directory by that name (also determines Gradle UP-TO-DATE)
enabled = !destination.exists()
//println "fetchAndroid requested for $repo from Github under $githubHome - exists already? " + !enabled
// Do the actual clone if we don't have the directory already
if (enabled) {
uri = "https://github.com/$githubHome/" + repo + ".git"
//println "Fetching $repo from $uri"
destinationPath = destination
bare = false
}
}
task (fetchGwt, type: GitClone) {
description = 'Git clones the GWT facade source from GitHub'
// Repo name is the dynamic part of the task name
def repo = 'DestSolGwt'
// Default GitHub account to use. Supply with -PgithubAccount="TargetAccountName" or via gradle.properties
def githubHome = 'MovingBlocks'
def destination = file('gwt')
// Don't clone this repo if we already have a directory by that name (also determines Gradle UP-TO-DATE)
enabled = !destination.exists()
//println "fetchGwt requested for $repo from Github under $githubHome - exists already? " + !enabled
// Do the actual clone if we don't have the directory already
if (enabled) {
uri = "https://github.com/$githubHome/" + repo + ".git"
//println "Fetching $repo from $uri"
destinationPath = destination
bare = false
}
}