Initial upload
This commit is contained in:
69
html/build.gradle
Normal file
69
html/build.gradle
Normal file
@@ -0,0 +1,69 @@
|
||||
apply plugin: "java"
|
||||
apply plugin: "jetty"
|
||||
|
||||
gwt {
|
||||
gwtVersion='2.8.0' // Should match the gwt version used for building the gwt backend
|
||||
maxHeapSize="1G" // Default 256m is not enough for gwt compiler. GWT is HUNGRY
|
||||
minHeapSize="1G"
|
||||
|
||||
src = files(file("src/")) // Needs to be in front of "modules" below.
|
||||
modules 'io.anuke.moment.GdxDefinition'
|
||||
devModules 'io.anuke.moment.GdxDefinitionSuperdev'
|
||||
project.webAppDirName = 'webapp'
|
||||
|
||||
compiler {
|
||||
strict = true;
|
||||
disableCastChecking = true;
|
||||
}
|
||||
}
|
||||
|
||||
task draftRun(type: JettyRunWar) {
|
||||
dependsOn draftWar
|
||||
dependsOn.remove('war')
|
||||
webApp=draftWar.archivePath
|
||||
daemon=true
|
||||
}
|
||||
|
||||
task superDev(type: de.richsource.gradle.plugins.gwt.GwtSuperDev) {
|
||||
dependsOn draftRun
|
||||
doFirst {
|
||||
gwt.modules = gwt.devModules
|
||||
}
|
||||
}
|
||||
|
||||
task dist(dependsOn: [clean, compileGwt]) {
|
||||
doLast {
|
||||
file("build/dist").mkdirs()
|
||||
copy {
|
||||
from "build/gwt/out"
|
||||
into "build/dist"
|
||||
}
|
||||
copy {
|
||||
from "webapp"
|
||||
into "build/dist"
|
||||
}
|
||||
copy {
|
||||
from "war"
|
||||
into "build/dist"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
draftWar {
|
||||
from "war"
|
||||
}
|
||||
|
||||
task addSource << {
|
||||
sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
|
||||
}
|
||||
|
||||
tasks.compileGwt.dependsOn(addSource)
|
||||
tasks.draftCompileGwt.dependsOn(addSource)
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
sourceSets.main.java.srcDirs = [ "src/" ]
|
||||
|
||||
|
||||
eclipse.project {
|
||||
name = appName + "-html"
|
||||
}
|
||||
Reference in New Issue
Block a user