forked from marklogic/ml-javaclient-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (69 loc) · 1.86 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
plugins {
id "java"
id "maven-publish"
id "eclipse"
id "idea"
id "com.jfrog.bintray" version "1.5"
id "com.github.jk1.dependency-license-report" version "0.3.11"
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
jcenter()
mavenCentral()
maven { url "http://developer.marklogic.com/maven2/" }
}
dependencies {
compile 'com.marklogic:marklogic-client-api:4.0.3.1'
compile 'com.marklogic:marklogic-xcc:9.0.3'
compile 'org.jdom:jdom2:2.0.6'
compile 'org.springframework:spring-context:4.3.7.RELEASE'
testCompile 'junit:junit:4+'
testCompile 'org.springframework:spring-test:4.3.7.RELEASE'
// Used for testing loading modules from the classpath
testRuntime files("lib/modules.jar")
// Forcing Spring to use logback instead of commons-logging
testRuntime "ch.qos.logback:logback-classic:1.1.8"
testRuntime group: "org.slf4j", name: "jcl-over-slf4j", version: "1.7.22"
testRuntime group: "org.slf4j", name: "slf4j-api", version: "1.7.22"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allJava
}
javadoc.destinationDir = file(javadocsDir + "/" + project.name)
javadoc.failOnError = false
publishing {
publications {
mainJava(MavenPublication) {
from components.java
}
sourcesJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
if (project.hasProperty("myBintrayUser")) {
bintray {
user = myBintrayUser
key = myBintrayKey
publications = ['mainJava', 'sourcesJava']
pkg {
repo = 'maven'
name = project.name
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git'
version {
name = project.version
released = new Date()
}
}
}
}
test {
testLogging {
events 'started','passed', 'skipped', 'failed'
exceptionFormat 'full'
}
}