forked from rpgboss/rpgboss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (102 loc) · 3.74 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath "com.github.maiflai:gradle-scalatest:0.10"
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = '1.0'
ext {
appName = "rpgboss"
gdxVersion = '1.7.2'
roboVMVersion = '1.12.0'
mainClass = "rpgboss.editor.RpgDesktop"
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
}
project(":desktop") {
apply plugin: "java"
apply plugin: "scala"
mainClass = "rpgboss.editor.RpgDesktop"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-controllers-desktop:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-controllers-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
compile "org.scala-lang:scala-library:2.11.7"
compile "org.apache.commons:commons-compress:1.9"
compile "org.scala-lang.modules:scala-swing_2.11:2.0.0-M2"
compile "com.github.benhutchison:scalaswingcontrib_2.11:1.5"
compile "net.java.dev.designgridlayout:designgridlayout:1.8"
compile "net.lingala.zip4j:zip4j:1.3.2"
compile "com.fifesoft:rsyntaxtextarea:2.5.3"
compile "net.coobird:thumbnailator:0.4.8"
}
tasks.withType(ScalaCompile) {
configure(scalaCompileOptions.forkOptions) {
memoryMaximumSize = '1g'
jvmArgs = ['-XX:MaxPermSize=512m']
}
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
}
project(":core") {
apply plugin: "java"
apply plugin: "scala"
apply plugin: "com.github.maiflai.scalatest"
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "ch.qos.logback:logback-classic:1.0.6"
compile "com.google.guava:guava:17.0"
compile "com.typesafe.scala-logging:scala-logging-slf4j_2.11:2.1.2"
compile "commons-io:commons-io:2.4"
compile "net.sf.opencsv:opencsv:2.0"
compile "org.json4s:json4s-native_2.11:3.2.11"
compile "org.mozilla:rhino:1.7R4"
compile "org.scalaj:scalaj-http_2.11:1.1.4"
compile "javax.websocket:javax.websocket-api:1.1"
compile "org.glassfish.tyrus.bundles:tyrus-standalone-client:1.10"
testCompile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
testCompile "org.scalatest:scalatest_2.11:2.1.5"
testRuntime 'org.pegdown:pegdown:1.1.0'
testCompile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
testCompile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
}
test {
maxParallelForks = 1
}
tasks.withType(ScalaCompile) {
configure(scalaCompileOptions.forkOptions) {
memoryMaximumSize = '1g'
jvmArgs = ['-XX:MaxPermSize=512m']
}
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
}
tasks.eclipse.doLast {
delete ".project"
}