buildscript { repositories { mavenCentral() jcenter() } } plugins { id "com.moowork.node" version "1.2.0" } task compileFrontend(type: YarnTask) { inputs.files(fileTree('node_modules')) inputs.files(fileTree('src')) inputs.file('package.json') inputs.file('webpack.config.js') outputs.dir('src/main/resources/static') args = ['run', 'compile'] } apply plugin: 'war' apply plugin: 'org.springframework.boot' dependencies { compile project(':juick-common') compile project(':juick-server-jdbc') providedCompile (project(':juick-api')) { transitive = false } compile 'com.github.ben-manes.caffeine:caffeine:2.6.2' compile("org.springframework.boot:spring-boot-starter-cache") compile("org.springframework.boot:spring-boot-starter-web") compile ('org.springframework.boot:spring-boot-starter-security') providedCompile("org.springframework.boot:spring-boot-starter-tomcat") providedRuntime 'com.h2database:h2:1.4.196' providedRuntime 'mysql:mysql-connector-java:5.1.45' runtime "commons-fileupload:commons-fileupload:1.3.3" compile 'com.github.scribejava:scribejava-apis:5.5.0' compile 'com.github.ooxi:serialized-php-parser:0.5.0' compile 'com.mitchellbosecke:pebble-spring4:2.4.0' compile 'com.atlassian.commonmark:commonmark:0.11.0' compile 'com.atlassian.commonmark:commonmark-ext-autolink:0.11.0' testCompile("org.springframework.boot:spring-boot-starter-test") testCompile ('net.sourceforge.htmlunit:htmlunit:2.31') } compileFrontend.dependsOn 'yarn' processResources.dependsOn 'compileFrontend' bootJar { launchScript() }