labswp_2019_sose_geocaching/labswp_2019_sose_geocaching_frontend/build.gradle
2019-06-26 13:52:05 +02:00

42 lines
835 B
Groovy

plugins {
id 'war'
id "com.moowork.node" version "1.3.1"
}
apply plugin: 'com.moowork.node'
group 'labswp_2019_sose_geocaching_frontend'
version '1.0-SNAPSHOT'
node {
version = '11.12.0'
npmVersion = '6.9.0'
download = true
}
war {
from 'web/' // adds a file-set to the root of the archive
from('manual') {
into 'manual'
}
// with {
// from('manual')
// into 'manual'
// }
webInf { from 'WEB-INF' } // adds a file-set to the WEB-INF dir.
webXml = file('WEB-INF/web.xml') // copies a file to WEB-INF/web.xml
baseName = 'buga19geocaching'
archiveName 'buga19geocaching.war'
}
buildDir '../build'
tasks.withType(NpmTask) {
execOverrides {
it.workingDir = 'frontend'
}
}
npm_run_build.dependsOn npm_install
assemble.dependsOn npm_run_build