-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (71 loc) · 2.04 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
buildscript {
repositories {
maven {url 'http://developer.marklogic.com/maven2/'}
}
}
plugins {
id 'java'
id 'eclipse'
id 'idea'
// This plugin allows you to create different environments
// for your gradle deploy. Each environment is represented
// by a gradle-${env}.properties file
// See https://github.com/stevesaliman/gradle-properties-plugin
// specify the env on the command line with:
// gradle -PenvironmentName=x ...
id 'net.saliman.properties' version '1.4.6'
// This gradle plugin extends the ml-gradle plugin with
// commands that make the Data Hub Framework do its magic
id 'com.marklogic.ml-data-hub' version '4.3.1'
id "org.tenne.rest" version "0.4.2"
}
repositories {
jcenter()
maven {url 'http://developer.marklogic.com/maven2/'}
}
configurations {
mlcp
}
dependencies {
// this allows you to write custom java code that depends
// on the Data Hub Framework library
compile 'com.marklogic:marklogic-data-hub:4.3.1'
compile 'com.marklogic:marklogic-xcc:9.0.7'
mlcp "com.marklogic:mlcp:9.0.9"
mlcp files("lib")
}
task mlcpImport(
type: com.marklogic.gradle.task.MlcpTask
) {
description 'Run MLCP. Pass option file.'
classpath = configurations.mlcp
command = "IMPORT"
host = mlHost
port = mlStagingPort.toInteger()
args = [
'-options_file', mlcpOptionsFile,
'-username', mlUsername,
'-password', mlPassword
]
}
task mlcpImportFinal(
type: com.marklogic.gradle.task.MlcpTask
) {
description 'Run MLCP. Pass option file.'
classpath = configurations.mlcp
command = "IMPORT"
host = mlHost
port = mlFinalPort.toInteger()
args = [
'-options_file', mlcpOptionsFile,
'-username', mlUsername,
'-password', mlPassword
]
}
task createDictionaries(type: org._10ne.gradle.rest.RestTask) {
httpMethod = 'put'
uri = 'http://' + mlHost + ':' + mlStagingPort + '/v1/resources/createDictionary'
username = mlUsername
password = mlPassword
responseHandler = {}
}