-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (67 loc) · 1.37 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
buildscript {
repositories {
jcenter {url "https://jcenter.bintray.com/"}
maven {url "http://developer.marklogic.com/maven2/"}
}
dependencies {
classpath "com.marklogic:marklogic-unit-test-client:1.0.0"
classpath "com.marklogic:ml-gradle:4.0.1"
}
}
plugins {
id "net.saliman.properties" version "1.4.6"
id "com.marklogic.ml-gradle" version "4.0.1"
id "maven-publish"
}
repositories {
mavenLocal()
jcenter {url "https://jcenter.bintray.com/"}
maven {url "http://developer.marklogic.com/maven2/"}
}
dependencies {
mlBundle "com.marklogic:marklogic-unit-test-modules:1.0.0"
}
configurations {
bundle
}
task bundleJar(type: Jar) {
from(
files("./src/main")
)
exclude(
"**/test/**"
)
exclude(
"**/ml-config/**"
)
exclude(
"**/ml-data/**"
)
exclude(
"**/resolvers/delegation-resolver.xqy",
"**/resolvers/document-resolver.xqy",
"**/resolvers/event-resolver.xqy",
"**/resolvers/export.xqy",
"**/resolvers/mutation-resolver.xqy",
"**/resolvers/person-resolver.xqy"
)
exclude(
"**/entities/**"
)
destinationDir file('build/libs/')
baseName = "graphXql"
}
artifacts {
bundle bundleJar
}
publishing {
repositories {
mavenLocal()
}
publications {
pluginPublication (MavenPublication) {
artifactId "graphXql"
artifact bundleJar
}
}
}