forked from watson-developer-cloud/assistant-with-discovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (104 loc) · 3.84 KB
/
build.gradle
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
repositories{
mavenCentral()
maven{
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.moowork.gradle:gradle-node-plugin:0.12'
classpath 'com.moowork.gradle:gradle-gulp-plugin:0.12'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5'
}
}
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'findbugs'
apply plugin: 'com.moowork.node'
apply plugin: 'com.moowork.gulp'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'com.google.code.gson:gson:2.6.2'
compile group: 'org.apache.solr', name: 'solr-solrj', version: '5.4.1'
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.3.1'
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.3.1'
compile group: 'com.squareup.okhttp3', name: 'okhttp-ws', version: '3.3.1'
compile group: 'com.squareup.okhttp3', name: 'okhttp-urlconnection', version: '3.3.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.3.2'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
compile group: 'commons-validator', name: 'commons-validator', version: '1.4.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.5'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.5'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.1'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.3.2'
compile group: 'org.jsoup', name: 'jsoup', version: '1.9.2'
compile group: 'com.ibm.watson.developer_cloud', name: 'conversation', version:'3.5.3'
compile group: 'com.ibm.watson.developer_cloud', name: 'discovery', version:'3.5.3'
testCompile 'com.sun.jersey:jersey-client:1.19.1'
testCompile 'org.mockito:mockito-core:1.+'
testCompile 'org.powermock:powermock-module-junit4:1.6.5'
testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version:'3.3.1'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.7'
testCompile group: 'com.google.guava', name: 'guava', version:'19.0'
testCompile group: 'junit', name: 'junit-dep', version:'4.11'
testCompile group: 'org.apache.commons', name: 'commons-lang3', version:'3.4'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.5'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task cleanWar(type: Delete) {
delete "build/libs"
}
artifacts {
archives sourcesJar
}
war {
archiveName = 'conversation-with-discovery-0.1-SNAPSHOT.war'
}
gulp_build.dependsOn 'installGulp'
gulp_build.dependsOn 'npmInstall'
gulp_build.dependsOn 'cleanWar'
war.mustRunAfter 'gulp_build'
defaultTasks 'build'
build.dependsOn gulp_build
node {
// Version of node to use.
version = '4.4.7'
// Enabled the automatic download.
download = true
}
gulp {
// Set the directory where gulpfile.js should be found
workDir = file("${project.projectDir}")
// Whether colors should output on the terminal
colors = true
// Whether output from Gulp should be buffered - useful when running tasks in parallel
bufferOutput = false
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}