Skip to content

Commit 7f5b3fe

Browse files
committed
Added test files to dependency-project
1 parent 86bd4b6 commit 7f5b3fe

File tree

8 files changed

+49
-11
lines changed

8 files changed

+49
-11
lines changed

examples/dependency-project/dhf-client-project/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
src
1+
src/main/hub-internal-config
2+
src/main/ml-config
23
gradle
34
.gradle
45
build

examples/dependency-project/dhf-client-project/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
22
repositories {
3-
jcenter()
3+
//jcenter()
44
maven {
55
url "http://plugins.gradle.org/m2/"
66
}
77
}
88
dependencies {
9-
classpath "com.marklogic:ml-gradle:3.13.0"
9+
classpath "gradle.plugin.com.marklogic:ml-gradle:3.13.0"
1010
classpath "gradle.plugin.com.marklogic:ml-data-hub:4.2.2"
1111
}
1212
}
@@ -24,3 +24,8 @@ repositories {
2424
dependencies {
2525
mlBundle "com.marklogic:example-dependency:1.0.0"
2626
}
27+
28+
task testPlugin(type: com.marklogic.gradle.task.ServerEvalTask) {
29+
description = "Run this to verify that the plugin from the example-dependency bundle was installed correctly; should get 66.67 as a result"
30+
javascript = "cts.aggregate('native/varianceplugin', 'variance', cts.elementReference(xs.QName('amount')))"
31+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"amount": 10
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"amount": 20
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"amount": 30
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<test/>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"template": {
3+
"context": "/data",
4+
"collections": [
5+
"data"
6+
],
7+
"rows": [
8+
{
9+
"schemaName": "Data",
10+
"viewName": "default",
11+
"columns": [
12+
{
13+
"name": "Id",
14+
"scalarType": "string",
15+
"val": "Id"
16+
}
17+
]
18+
}
19+
]
20+
}
21+
}

examples/dependency-project/ml-gradle-client-project/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
buildscript {
2-
repositories {
3-
jcenter()
4-
}
5-
dependencies {
6-
classpath "com.marklogic:ml-gradle:3.13.0"
7-
}
8-
}
1+
//buildscript {
2+
// repositories {
3+
// jcenter()
4+
// }
5+
// dependencies {
6+
// classpath "com.marklogic:ml-gradle:3.13.0"
7+
// }
8+
//}
99

1010
plugins {
1111
id "net.saliman.properties" version "1.4.6"
12+
id "com.marklogic.ml-gradle" version "3.13.0"
1213
}
1314

1415
apply plugin: "com.marklogic.ml-gradle"

0 commit comments

Comments
 (0)