diff options
Diffstat (limited to 'html/build.gradle')
| -rw-r--r-- | html/build.gradle | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/html/build.gradle b/html/build.gradle index 2036b11..89d07bd 100644 --- a/html/build.gradle +++ b/html/build.gradle @@ -1,4 +1,3 @@ - buildscript { repositories { mavenCentral() @@ -14,7 +13,8 @@ apply plugin: "war" apply plugin: "org.gretty" gwt { - gwtVersion = "$gwtFrameworkVersion" // Should match the version used for building the GWT backend. See gradle.properties. + gwtVersion = "$gwtFrameworkVersion" + // Should match the version used for building the GWT backend. See gradle.properties. maxHeapSize = '1G' // Default 256m is not enough for the GWT compiler. GWT is HUNGRY. minHeapSize = '1G' @@ -36,6 +36,9 @@ dependencies { implementation "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources" implementation "com.badlogicgames.gdx:gdx:$gdxVersion:sources" implementation "com.github.mgsx-dev.gdx-gltf:gltf:$gdxGltfVersion:sources" + implementation "com.github.MrStahlfelge.gdx-websockets:core:$gdxWsVersion:sources" + implementation "com.github.MrStahlfelge.gdx-websockets:html:$gdxWsVersion" + implementation "com.github.MrStahlfelge.gdx-websockets:html:$gdxWsVersion:sources" implementation project(':core') } @@ -49,7 +52,7 @@ gretty.resourceBase = "${project.layout.buildDirectory.asFile.get().absolutePath gretty.contextPath = "/" gretty.portPropertiesFileName = "TEMP_PORTS.properties" -task startHttpServer (dependsOn: [draftCompileGwt]) { +task startHttpServer(dependsOn: [draftCompileGwt]) { doFirst { copy { from "webapp" @@ -99,7 +102,7 @@ task dist(dependsOn: [clean, compileGwt]) { file(outputPath).mkdirs() copy { - from("build/gwt/out"){ + from("build/gwt/out") { exclude '**/*.symbolMap' // Not used by a dist, and these can be large. } into outputPath @@ -110,7 +113,7 @@ task dist(dependsOn: [clean, compileGwt]) { exclude 'refresh.png' // We don't need this button; this saves some bytes. } into outputPath - } + } copy { from("webapp") { // These next two lines take the index.html page and remove the superdev refresh button. @@ -121,7 +124,7 @@ task dist(dependsOn: [clean, compileGwt]) { // either remove or comment out only the "filter" line above this. } into outputPath - } + } copy { from "war" into outputPath @@ -137,7 +140,7 @@ task addSource { } } -task distZip(type: Zip, dependsOn: dist){ +task distZip(type: Zip, dependsOn: dist) { //// This uses the output of the dist task, which removes the superdev button from index.html . from(outputPath) archiveVersion = projectVersion @@ -152,6 +155,6 @@ tasks.checkGwt.dependsOn(addSource) java.sourceCompatibility = JavaVersion.VERSION_11 java.targetCompatibility = JavaVersion.VERSION_11 -sourceSets.main.java.srcDirs = [ "src/main/java/" ] +sourceSets.main.java.srcDirs = ["src/main/java/"] eclipse.project.name = appName + "-html" |
