aboutsummaryrefslogtreecommitdiff
path: root/juick-www/build.gradle
blob: fb7f8131a09c1f14b75975403ba13280684bd12d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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')
    args = ['run', 'compile']
}

apply plugin: 'war'

dependencies {
    compile project(':juick-server-web')
    compile project(':juick-server-jdbc')
    compile ('org.springframework.boot:spring-boot-starter-security')
    providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
    compile 'com.github.scribejava:scribejava-apis:5.3.0'
    compile 'com.github.ooxi:serialized-php-parser:0.5.0'
    compile 'com.sun.mail:javax.mail:1.6.1'
    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.29')
}

compileFrontend.dependsOn 'yarn'
processResources.dependsOn 'compileFrontend'

bootJar {
    launchScript()
}