-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (91 loc) · 2.56 KB
/
Copy pathbuild.gradle
File metadata and controls
101 lines (91 loc) · 2.56 KB
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
buildscript {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
google()
}
dependencies {
classpath 'org.docstr:gwt-gradle-plugin:1.1.29'
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "https://repo1.maven.org/maven2/" }
}
}
ext {
appName = "oathbound"
gdxVersion = '1.12.1'
gwtVersion = '2.8.2'
}
project(":core") {
apply plugin: "java-library"
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
api "com.badlogicgames.gdx:gdx:$gdxVersion"
}
}
project(":desktop") {
apply plugin: "java-library"
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
implementation project(":core")
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
}
}
project(":html") {
apply plugin: "org.docstr.gwt"
apply plugin: "war"
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java {
srcDirs = ['src', '../core/src']
}
resources {
srcDirs = ['src', '../core/src', '../core/assets']
}
}
}
dependencies {
implementation project(":core")
implementation "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
implementation "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
implementation "com.google.gwt:gwt-user:2.8.2"
implementation "com.google.gwt:gwt-dev:2.8.2"
}
gwt {
gwtVersion = "2.8.2"
maxHeapSize = "1G"
minHeapSize = "1G"
modules = ['com.oathbound.GdxDefinition']
src = files(
file('src'),
file('../core/src')
)
}
task dist(dependsOn: [clean, compileGwt]) {
doLast {
file("${project.buildDir}/dist").mkdirs()
copy {
from "war"
into "${project.buildDir}/dist"
}
copy {
from "${project.buildDir}/gwt/out"
into "${project.buildDir}/dist"
}
}
}
}