buildscript { repositories { mavenCentral() jcenter() } } plugins { id "com.moowork.node" version "1.2.0" } task compileFrontend(type: NpmTask) { inputs.files(fileTree('node_modules')) inputs.files(fileTree('src')) inputs.file('package.json') inputs.file('webpack.config.js') outputs.dir('src/main/resources') args = ['run', 'compile'] } apply plugin: 'java' apply plugin: 'war' apply plugin: 'org.akhikhl.gretty' dependencies { compile project(':juick-server-web') compile project(':juick-server-jdbc') compile 'com.github.scribejava:scribejava-apis:4.2.0' compile 'com.github.ooxi:serialized-php-parser:0.5.0' compile 'com.sun.mail:javax.mail:1.6.0' compile 'com.mitchellbosecke:pebble-spring4:2.4.0' compile 'com.atlassian.commonmark:commonmark:0.10.0' compile 'com.atlassian.commonmark:commonmark-ext-autolink:0.10.0' testCompile project(path: ':juick-core', configuration: 'testArtifacts') testCompile project(path: ':juick-server-web', configuration: 'testArtifacts') testCompile project(path: ':juick-server-jdbc', configuration: 'testArtifacts') testCompile ('net.sourceforge.htmlunit:htmlunit:2.27') } compileFrontend.dependsOn 'npmInstall' processResources.dependsOn 'compileFrontend' compileJava.options.encoding = 'UTF-8' gretty { httpPort = 8080 contextPath = '/' servletContainer = 'tomcat8' } configurations { all*.exclude module: 'commons-logging' }