Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (87 loc) · 3.06 KB
/
Copy pathbuild.gradle
File metadata and controls
102 lines (87 loc) · 3.06 KB
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
plugins {
id 'ru.vyarus.animalsniffer' version '1.2.0'
}
defaultTasks 'clean'
apply from: '../utils.gradle'
import org.apache.tools.ant.filters.*
apply plugin: 'java'
apply plugin: 'ru.vyarus.animalsniffer'
apply plugin: 'maven'
apply plugin: 'checkstyle'
apply plugin: 'eclipse'
version = '3.5.4-SNAPSHOT'
group = 'com.ibm.watson.developercloud'
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
repositories {
mavenCentral()
}
artifacts {
archives sourcesJar
archives javadocJar
}
checkstyleTest {
ignoreFailures = true
}
checkstyle {
configFile = rootProject.file('checkstyle.xml')
}
task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
configurations {
tests
}
artifacts {
tests testJar
}
dependencies {
compile project(':conversation')
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.3.1'
compile group: 'com.squareup.okhttp3', name: 'okhttp-ws', version: '3.3.1'
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.3.1'
compile group: 'com.squareup.okhttp3', name: 'okhttp-urlconnection', version: '3.3.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'org.glassfish.jersey.bundles.repackaged', name: 'jersey-jsr166e', version: '2.22.2'
testCompile project(path: ':core', configuration: 'tests')
testCompile project(':alchemy')
testCompile project(':document-conversion')
testCompile project(':language-translation')
testCompile project(':natural-language-classifier')
testCompile project(':personality-insights')
testCompile project(':retrieve-and-rank')
testCompile project(':speech-to-text')
testCompile project(':text-to-speech')
testCompile project(':tone-analyzer')
testCompile project(':tradeoff-analytics')
testCompile project(':visual-recognition')
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'
signature 'org.codehaus.mojo.signature:java17:1.0@signature'
}
processResources {
filter ReplaceTokens, tokens: [
"pom.version": project.version,
"build.date" : getDate()
]
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
}
}
}