forked from Anuken/LudumDare46
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (75 loc) · 2.18 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{
ext{
getLatest = { String repo ->
try{
return "git ls-remote https://github.com/${repo}.git".execute().text.split("\t")[0]
}catch(e){
e.printStackTrace()
return "-SNAPSHOT"
}
}
arcHash = getLatest("Anuken/Arc")
}
repositories{
mavenLocal()
mavenCentral()
google()
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven{ url "https://dl.bintray.com/konsoletyper/teavm" }
maven{ url "https://jitpack.io" }
jcenter()
}
dependencies{
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "com.github.Anuken:teavm-gradle-plugin:${getLatest("Anuken/teavm-gradle-plugin")}"
classpath "com.github.Anuken.Arc:packer:$arcHash"
classpath "com.github.Anuken.Arc:arc-core:$arcHash"
}
}
allprojects{
version = '1.0'
ext{
appName = "ld"
gdxVersion = '1.9.10'
arcModule = { String name ->
return project(":Arc:$name")
}
}
repositories{
mavenLocal()
mavenCentral()
google()
jcenter()
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven{ url "https://oss.sonatype.org/content/repositories/releases/" }
maven{ url 'https://jitpack.io' }
}
}
project(":desktop"){
apply plugin: "java"
dependencies{
compile project(":core")
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile arcModule("extensions:recorder")
compile arcModule("backends:backend-sdl")
}
}
project(":teavm"){
apply plugin: "java"
repositories{
maven{ url "https://dl.bintray.com/konsoletyper/teavm" }
}
dependencies{
compile project(":core")
compile arcModule("arc-core")
compile arcModule("backends:backend-teavm")
}
}
project(":core"){
apply plugin: "java"
dependencies{
compile arcModule("arc-core")
compile arcModule("extensions:fx")
compile 'com.github.SquidPony.SquidLib:squidlib-util:-SNAPSHOT'
}
}