1
1
plugins {
2
2
id ' net.saliman.properties' version ' 1.4.4'
3
- id ' com.marklogic.ml-gradle' version ' 2.0'
4
3
id ' java'
5
4
id ' eclipse'
6
5
id ' idea'
7
6
id ' maven-publish'
7
+ id ' com.jfrog.bintray' version ' 1.6'
8
8
}
9
9
10
10
repositories {
@@ -13,12 +13,11 @@ repositories {
13
13
maven { url ' http://developer.marklogic.com/maven2/' }
14
14
}
15
15
16
- group = ' com.marklogic'
16
+ group = ' com.marklogic'
17
17
18
18
sourceCompatibility = 1.8
19
19
targetCompatibility = 1.8
20
20
21
-
22
21
dependencies {
23
22
compile ' org.springframework.batch:spring-batch-core:3.0.6.RELEASE'
24
23
compile ' com.marklogic:marklogic-xcc:8.0.4.2'
@@ -27,7 +26,7 @@ dependencies {
27
26
compile ' com.marklogic:ml-app-deployer:2.0'
28
27
compile ' commons-io:commons-io:2.4'
29
28
compile ' org.apache.commons:commons-csv:1.2'
30
- compile(" com.marklogic:mlcp:8.0-4" ) {
29
+ compile(' com.marklogic:mlcp:8.0-4' ) {
31
30
exclude module : ' servlet-api'
32
31
exclude group : ' com.google.guava' , module : ' guava'
33
32
}
@@ -49,97 +48,76 @@ task sourcesJar(type: Jar, dependsOn: classes) {
49
48
}
50
49
51
50
javadoc {
52
- options. overview = " src/main/resources/overview.html"
51
+ options. overview = ' src/main/resources/overview.html'
53
52
}
54
53
55
54
Node pomCustomizations = new NodeBuilder (). project {
56
- name ' hub-in-a-box'
57
- packaging ' jar'
58
- textdescription ' Library for Creating an Enterprise Data Hub on MarkLogic'
59
- url ' https://github.com/marklogic/hub-in-a-box'
55
+ name ' marklogic-data-hub'
56
+ packaging ' jar'
57
+ textdescription ' Library for Creating an Enterprise Data Hub on MarkLogic'
58
+ url ' https://github.com/marklogic/marklogic-data-hub'
59
+
60
+ scm {
61
+ url
' [email protected] :marklogic/marklogic-data-hub.git'
62
+ connection
' scm:[email protected] :marklogic/marklogic-data-hub.git'
63
+ developerConnection
' scm:[email protected] :marklogic/marklogic-data-hub.git'
64
+ }
60
65
61
- scm {
62
- url ' [email protected] :marklogic/hub-in-a-box.git'
63
- connection ' scm:[email protected] :marklogic/hub-in-a-box.git '
64
- developerConnection ' scm:[email protected] :marklogic/hub-in-a-box.git '
66
+ licenses {
67
+ license {
68
+ name ' The Apache Software License, Version 2.0 '
69
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt '
65
70
}
71
+ }
66
72
67
- licenses {
68
- license {
69
- name ' The Apache Software License, Version 2.0'
70
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
71
- }
73
+ developers {
74
+ developer {
75
+ name ' MarkLogic'
76
+
77
+ organization ' MarkLogic'
78
+ organizationUrl ' https://www.marklogic.com'
72
79
}
73
-
74
- developers {
75
- developer {
76
- name ' MarkLogic'
77
-
78
- organization ' MarkLogic'
79
- organizationUrl ' https://www.marklogic.com'
80
- }
81
- developer {
82
- name ' MarkLogic Github Contributors'
83
-
84
- organization ' Github Contributors'
85
- organizationUrl ' https://github.com/marklogic/hub-in-a-box/graphs/contributors'
86
- }
80
+ developer {
81
+ name ' MarkLogic Github Contributors'
82
+
83
+ organization ' Github Contributors'
84
+ organizationUrl ' https://github.com/marklogic/marklogic-data-hub/graphs/contributors'
87
85
}
86
+ }
88
87
}
89
88
90
89
publishing {
91
- publications {
92
- mainJava(MavenPublication ) {
93
- from components. java
94
-
95
- pom. withXml {
96
- asNode(). append(pomCustomizations. developers)
97
- asNode(). append(pomCustomizations. name)
98
- asNode(). append(pomCustomizations. packaging)
99
- asNode(). append(pomCustomizations. url)
100
- asNode(). append(pomCustomizations. scm)
101
- asNode(). append(pomCustomizations. licenses)
102
- asNode(). appendNode(" description" , pomCustomizations. textdescription. text)
103
- }
104
-
105
- artifact sourcesJar
106
-
107
- artifact javadocJar
108
-
109
- }
110
- }
111
- repositories {
112
- maven {
113
- url publishUrl
90
+ publications {
91
+ main(MavenPublication ) {
92
+ from components. java
93
+ artifact sourcesJar
94
+ artifact javadocJar
95
+
96
+ pom. withXml {
97
+ asNode(). appendNode(' description' , pomCustomizations. textdescription. text())
98
+ asNode(). append(pomCustomizations. developers)
99
+ asNode(). append(pomCustomizations. name)
100
+ asNode(). append(pomCustomizations. packaging)
101
+ asNode(). append(pomCustomizations. url)
102
+ asNode(). append(pomCustomizations. scm)
103
+ asNode(). append(pomCustomizations. licenses)
104
+ }
105
+ }
114
106
}
115
- }
116
107
}
117
108
118
- ext {
119
- mlAppConfig {
120
- modulePaths = [" marklogic-data-hub/src/main/resources/ml-modules" ]
109
+ bintray {
110
+ user = project. hasProperty(' bintrayUser' ) ? project. property(' bintrayUser' ) : System . getenv(' BINTRAY_USER' )
111
+ key = project. hasProperty(' bintrayApiKey' ) ? project. property(' bintrayApiKey' ) : System . getenv(' BINTRAY_API_KEY' )
112
+ publications = [' main' ]
113
+ pkg {
114
+ repo = ' maven'
115
+ name = project. name
116
+ desc = pomCustomizations. textdescription. text()
117
+ // userOrg = user
118
+ licenses = [' Apache-2.0' ]
119
+ websiteUrl = pomCustomizations. url
120
+ vcsUrl = pomCustomizations. scm. url
121
+ issueTrackerUrl = ' https://github.com/marklogic/marklogic-data-hub/issues'
121
122
}
122
-
123
- // don't deploy the content database
124
- cmd = mlAppDeployer. getCommand(" DeployContentDatabasesCommand" )
125
- index = mlAppDeployer. commands. indexOf(cmd)
126
- mlAppDeployer. commands. remove(cmd)
127
- mlDatabaseCommands. remove(cmd)
128
-
129
- def stagingDbCommand = new com.marklogic.appdeployer.command.databases.DeployDatabaseCommand (" staging-database.json" )
130
- stagingDbCommand. setForestsPerHost(3 );
131
- mlAppDeployer. commands. add(index, stagingDbCommand)
132
- mlDatabaseCommands. add(stagingDbCommand)
133
-
134
- def finalDbCommand = new com.marklogic.appdeployer.command.databases.DeployDatabaseCommand (" final-database.json" )
135
- finalDbCommand. setForestsPerHost(3 );
136
- mlAppDeployer. commands. add(index + 1 , finalDbCommand)
137
- mlDatabaseCommands. add(finalDbCommand)
138
-
139
- println (mlAppDeployer. commands. toString())
140
- println (" " )
141
- println (" " )
142
- println (mlDatabaseCommands. toString())
143
-
144
-
145
123
}
0 commit comments