aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/build.gradle
blob: 76a37e4b4071a5bb0aab4c33b60af3fc3676cd61 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apply plugin: 'java'
apply plugin: 'war'

sourceCompatibility = 1.8

dependencies {
    compile project(':juick-server-core')

    compile "com.fasterxml.jackson.core:jackson-core:${rootProject.jacksonVersion}"
    compile "com.fasterxml.jackson.core:jackson-databind:${rootProject.jacksonVersion}"
    compile "com.fasterxml.jackson.core:jackson-annotations:${rootProject.jacksonVersion}"
    compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${rootProject.jacksonVersion}"
    compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${rootProject.jacksonVersion}"

    providedCompile "ch.qos.logback:logback-classic:${rootProject.logbackVersion}"
    providedCompile "ch.qos.logback:logback-core:${rootProject.logbackVersion}"
    providedCompile "ch.qos.logback:logback-access:${rootProject.logbackVersion}"

    providedCompile "org.slf4j:slf4j-api:${rootProject.slf4jVersion}"
    providedCompile "org.slf4j:jcl-over-slf4j:${rootProject.slf4jVersion}"
    providedCompile "org.slf4j:log4j-over-slf4j:${rootProject.slf4jVersion}"
    providedCompile "org.slf4j:jul-to-slf4j:${rootProject.slf4jVersion}"

    providedCompile "org.apache.commons:commons-lang3:3.7"
    providedCompile "org.apache.commons:commons-collections4:4.1"

    compile "org.springframework:spring-context:${rootProject.springFrameworkVersion}"
    compile "org.springframework:spring-jdbc:${rootProject.springFrameworkVersion}"

    providedCompile "org.apache.commons:commons-dbcp2:2.2.0"
    compile "com.googlecode.log4jdbc:log4jdbc:1.2"
    compile "javax.inject:javax.inject:1"

    compile 'org.imgscalr:imgscalr-lib:4.2'

    providedCompile 'com.h2database:h2:1.4.196'
    providedCompile "javax.servlet:javax.servlet-api:3.1.0"
    providedRuntime 'mysql:mysql-connector-java:5.1.40'

    providedRuntime "commons-fileupload:commons-fileupload:1.3.3"

    testCompile project(path: ':juick-core', configuration: 'testArtifacts')
    testCompile "junit:junit:${rootProject.junitVersion}"
    testCompile "org.hamcrest:hamcrest-all:${rootProject.hamcrestVersion}"
    testCompile "org.mockito:mockito-core:${rootProject.mockitoVersion}"
    testCompile "org.springframework:spring-test:${rootProject.springFrameworkVersion}"

    testRuntime "mysql:mysql-connector-java:5.1.40"
    testRuntime "org.postgresql:postgresql:42.2.1"
}

compileJava.options.encoding = 'UTF-8'

configurations {
    all*.exclude module: 'commons-logging'
}

configurations {
    testArtifacts.extendsFrom testRuntime
}
task testJar(type: Jar) {
    classifier "test"
    from sourceSets.test.output
}
artifacts {
    testArtifacts testJar
}