split vtm-web into library and vtm-web-app

This commit is contained in:
Hannes Janetzek
2014-03-21 21:42:10 +01:00
parent 1bbf77df0c
commit 4e4d4270db
22 changed files with 296 additions and 71 deletions

View File

@@ -13,9 +13,10 @@ repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
apply plugin: 'war'
apply plugin: 'jetty'
apply plugin: 'gwt'
//apply plugin: 'war'
//apply plugin: 'jetty'
apply plugin: 'java'
apply plugin: 'gwt-base'
apply plugin: 'eclipse'
sourceSets {
@@ -23,12 +24,12 @@ sourceSets {
}
dependencies {
providedCompile project(':vtm-gdx')
providedCompile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
providedCompile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
providedCompile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
providedCompile 'ru.finam:slf4j-gwt:1.2.1'
providedCompile 'org.slf4j:slf4j-api:1.7.5'
compile project(':vtm-gdx')
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
compile 'ru.finam:slf4j-gwt:1.2.1'
compile 'org.slf4j:slf4j-api:1.7.5'
}
// explicit dependencies for org.gradle.configureondemand=true
@@ -38,7 +39,7 @@ evaluationDependsOn(':vtm-gdx')
gwt {
gwtVersion='2.6.0'
modules 'org.oscim.gdx.GwtDefinition'
modules 'org.oscim.gdx.VtmWeb'
superDev {
noPrecompile=true
@@ -57,28 +58,28 @@ gwt {
}
// Run jetty with draft compiled war
task jettyDraftWar(type: JettyRunWar) {
dependsOn draftWar
dependsOn.remove('war')
webApp=draftWar.archivePath
}
//task jettyDraftWar(type: JettyRunWar) {
// dependsOn draftWar
// dependsOn.remove('war')
// webApp=draftWar.archivePath
//}
task copyThemeAssets(type: Copy) {
from "$rootDir/vtm-themes/resources/assets"
into "assets"
include '**/*'
}
//task copyThemeAssets(type: Copy) {
// from "$rootDir/vtm-themes/resources/assets"
// into "assets"
// include '**/*'
//}
task copyVtmAssets(type: Copy) {
from "$rootDir/vtm/resources/assets"
into "assets"
include '**/*'
}
//task copyVtmAssets(type: Copy) {
// from "$rootDir/vtm/resources/assets"
// into "assets"
// include '**/*'
//}
tasks.withType(JavaCompile) { compileTask ->
compileTask.dependsOn copyThemeAssets
compileTask.dependsOn copyVtmAssets
}
//tasks.withType(JavaCompile) { compileTask ->
// compileTask.dependsOn copyThemeAssets
// compileTask.dependsOn copyVtmAssets
//}
// Configuring Eclipse classpath
eclipse.classpath {