forked from 00-Evan/shattered-pixel-dungeon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (60 loc) · 2 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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
}
}
allprojects {
ext {
appName = 'Shattered Pixel Dungeon'
appPackageName = 'com.shatteredpixel.shatteredpixeldungeon'
appVersionCode = 736
appVersionName = '2.1.4'
appJavaCompatibility = JavaVersion.VERSION_1_8
appAndroidCompileSDK = 33
appAndroidMinSDK = 14
appAndroidTargetSDK = 33
gdxVersion = '1.11.0'
gdxControllersVersion = '2.2.4-SNAPSHOT'
robovmVersion = '2.3.19'
}
version = appVersionName
repositories {
google()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
task writeProperties {
doLast {
def launchConfig = [
"version": "0.2.0",
"configurations": [
[
"name": "Java Debug with Properties",
"type": "java",
"request": "launch",
"mainClass": "com.shatteredpixel.shatteredpixeldungeon.desktop.DesktopLauncher",
"preLaunchTask": "gradlew writeProperties",
"cwd": "\${workspaceFolder}",
"vmArgs": [
"-DSpecification-Title=$appName",
"-DImplementation-Title=$appPackageName",
"-DSpecification-Version=$appVersionName",
"-DImplementation-Version=$appVersionCode"
],
"sourcePaths": [
"\${workspaceFolder}/core/src/main/assets",
"\${workspaceFolder}/desktop/src/main/assets"
]
]
]
]
new File("$projectDir/.vscode/launch.json").withWriter { writer ->
writer.write(new groovy.json.JsonBuilder(launchConfig).toPrettyString())
}
}
}