-
Notifications
You must be signed in to change notification settings - Fork 16
/
settings.gradle.kts
62 lines (51 loc) · 1.95 KB
/
settings.gradle.kts
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
import java.util.*
pluginManagement {
repositories {
mavenLocal()
maven {
url = uri("http://teavm.org/maven/repository/")
setAllowInsecureProtocol(true)
}
mavenCentral()
gradlePluginPortal()
}
}
include(":backends:backend-teavm")
include(":extensions:asset-loader")
include(":extensions:gdx-freetype-teavm")
//include(":tools:generator:core")
//include(":tools:generator:ui")
//include(":tools:generator:desktop")
include(":examples:core:core")
include(":examples:core:desktop")
include(":examples:core:teavm")
include(":examples:freetype:core")
include(":examples:freetype:desktop")
include(":examples:freetype:teavm")
val file = File(settingsDir, "gradle.properties")
val properties = Properties()
if(file.exists()) {
properties.load(file.inputStream())
}
val gdxSourcePath = properties.getOrDefault("gdxSourcePath", "") as String
val teavmPath = properties.getOrDefault("teavmPath", "") as String
val includeLibgdxSource = (properties.getOrDefault("includeLibgdxSource", "false") as String).toBoolean()
val includeTeaVMSource = (properties.getOrDefault("includeTeaVMSource", "false") as String).toBoolean()
if(includeLibgdxSource) {
include(":examples:gdx-tests:core")
include(":examples:gdx-tests:desktop")
include(":examples:gdx-tests:teavm")
includeBuild(gdxSourcePath)
}
if(includeTeaVMSource) {
includeBuild(teavmPath) {
dependencySubstitution {
substitute(module("org.teavm:teavm-tooling")).using(project(":tools:core"))
substitute(module("org.teavm:teavm-core")).using(project(":core"))
substitute(module("org.teavm:teavm-classlib")).using(project(":classlib"))
substitute(module("org.teavm:teavm-jso")).using(project(":jso:core"))
substitute(module("org.teavm:teavm-jso-apis")).using(project(":jso:apis"))
substitute(module("org.teavm:teavm-jso-impl")).using(project(":jso:impl"))
}
}
}