forked from SpinahVieh/Obsidio-Server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
129 lines (115 loc) · 4.49 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
google()
}
dependencies {
// classpath 'org.wisepersist:gwt-gradle-plugin:1.0.13'
// classpath 'org.gretty:gretty:3.0.2'
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = '1.0'
ext {
appName = "Cadesim"
gdxVersion = '1.9.12'
roboVMVersion = '2.3.11'
box2DLightsVersion = '1.5'
ashleyVersion = '1.7.3'
aiVersion = '1.8.2'
visuiVersion = '1.4.9'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url 'https://jitpack.io' }
}
}
project(":client-core") {
apply plugin: "java"
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
compile "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
compile "com.badlogicgames.ashley:ashley:$ashleyVersion"
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
compile "com.badlogicgames.gdx:gdx-bullet:$gdxVersion"
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
compile group: 'io.netty', name: 'netty-all', version: '4.1.40.Final'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'javax.xml.soap', name: 'javax.xml.soap-api', version: '1.4.0'
compile "com.kotcrab.vis:vis-ui:$visuiVersion"
compile 'com.jcraft:jsch:0.1.54'
}
}
project(":client-launcher") {
apply plugin: "java"
dependencies {
compile project(":client-core")
compile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
compile ("com.badlogicgames.gdx:gdx-tools:$gdxVersion") {
exclude group: 'com.badlogicgames.gdx', module: 'gdx-backend-lwjgl'
}
compile "com.badlogicgames.gdx:gdx-controllers-desktop:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-controllers-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-desktop"
}
}
project(":server") {
apply plugin: "java"
dependencies {
compile group: 'io.netty', name: 'netty-all', version: '4.1.40.Final'
compile group: 'io.netty', name: 'netty-all', version: '4.1.40.Final-sources'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile 'com.jcraft:jsch:0.1.54'
}
}
tasks.eclipse.doLast {
delete ".project"
}
task clean(type:Delete) {
delete "release"
}
task release(type: Exec) {
dependsOn ":client-launcher:dist" // client jar
dependsOn ":server:dist" // server jar
workingDir "$projectDir"
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
// bash must be accessible from your %PATH% environment variable
// e.g. append "C:\Program Files (x86)\Git\Bin\" to PATH.
commandLine 'cmd', '/c', 'bash build-release.bash'
} else {
commandLine 'bash', '-c','bash build-release.bash'
}
}
task deploy(type: Exec) {
//must specify program argument in run configuration e.g. -Parg=growup
dependsOn ":client-launcher:dist" // client jar
dependsOn ":server:dist" // server jar
workingDir "$projectDir"
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
// bash must be accessible from your %PATH% environment variable
// e.g. append "C:\Program Files (x86)\Git\Bin\" to PATH.
if(project.properties.arg != null){
commandLine 'cmd', '/c', 'bash deploy.bash ' + arg
}
} else {
if(project.properties.arg != null){
commandLine 'bash', '-c','bash deploy.bash ' + arg
}
}
}