aboutsummaryrefslogtreecommitdiff
path: root/juick-server/build.gradle
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-06 13:58:40 +0300
committerGravatar Vitaly Takmazov2018-09-07 05:15:51 -0400
commit670913698776e09b7ff44f44ccdcf56303d79be3 (patch)
tree96f932645ab0faf9de6861f89072d1eb4b2622a3 /juick-server/build.gradle
parent51489a954463567f8dd50854826c03ce51c45cb3 (diff)
merge legacy www
Diffstat (limited to 'juick-server/build.gradle')
-rw-r--r--juick-server/build.gradle28
1 files changed, 26 insertions, 2 deletions
diff --git a/juick-server/build.gradle b/juick-server/build.gradle
index 630ac57b..e96bdc3d 100644
--- a/juick-server/build.gradle
+++ b/juick-server/build.gradle
@@ -1,8 +1,21 @@
apply plugin: 'war'
apply plugin: 'org.springframework.boot'
+apply plugin: 'com.moowork.node'
+
+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']
+}
+
dependencies {
compile project(':juick-common')
+ 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-security')
compile ('org.springframework.boot:spring-boot-starter-jdbc')
@@ -36,11 +49,22 @@ dependencies {
compile 'org.flywaydb:flyway-core:5.1.4'
providedRuntime 'mysql:mysql-connector-java:5.1.45'
+ runtime "commons-fileupload:commons-fileupload:1.3.3"
- testCompile("org.springframework.boot:spring-boot-starter-test")
- testCompile("org.springframework.security:spring-security-test")
+ compile 'com.github.scribejava:scribejava-apis:5.5.0'
+ compile 'com.github.ooxi:serialized-php-parser:0.5.0'
+ compile 'io.pebbletemplates:pebble-spring5:3.0.3'
+ 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.32')
+ testCompile ('org.springframework.security:spring-security-test')
}
bootJar {
launchScript()
}
+
+compileFrontend.dependsOn 'yarn'
+processResources.dependsOn 'compileFrontend' \ No newline at end of file