Skip to content

Commit bdbe383

Browse files
committed
Updated sample-project for 4.0
1 parent cdf1b7f commit bdbe383

File tree

3 files changed

+13
-34
lines changed

3 files changed

+13
-34
lines changed

examples/sample-project/build.gradle

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
jcenter()
99
}
1010
dependencies {
11-
classpath "com.marklogic:ml-gradle:3.17.0"
11+
classpath "com.marklogic:ml-gradle:4.0.0"
1212
}
1313
}
1414

@@ -80,22 +80,6 @@ ext {
8080
customTokens.put("%%ODBC_PORT%%", "8102")
8181
customTokens.put("%%XDBC_PORT%%", "8103")
8282

83-
// By default, the createTriggersDatabase attribute is set to true, which results in a triggers database being
84-
// created, even if a databases/triggers-database.json file isn't present. Un-commenting the line will below
85-
// will prevent one from being created (assuming the triggers-database.json file isn't present).
86-
//createTriggersDatabase = false
87-
88-
// Example of adding a path for modules to the list of module paths, which defaults to src/main/ml-modules
89-
// modulePaths.add("src/another-modules-dir")
90-
// You can also override the list of module paths
91-
// modulePaths = ["src/another-modules-dir"]
92-
93-
// You can have multiple config files for your content database. This is useful when you have a dependency on
94-
// a package of MarkLogic modules that requires some content database config, and you don't want to duplicate
95-
// that in your own content-database.json file. Instead, just add the file from your
96-
// build/mlBundle/(name of dependency)/ml-config/databases directory.
97-
configDir.contentDatabaseFiles.add(new File("src/main/ml-config/databases/more-content-database-config.json"))
98-
9983
// XCC URL for running corb task below and for creating triggers on pre-8.0-4 builds of MarkLogic
10084
contentXccUrl = "xcc://${mlRestAdminUsername}:${mlRestAdminPassword}@${mlHost}:${mlRestPort}"
10185
}

examples/sample-project/gradle.properties

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,3 @@ mlModulePermissions=rest-admin,read,rest-admin,update,rest-extension-user,execut
6868
# binaries. To do, just set the below property with a comma-separated list of extensions. Of course *.gradle and
6969
# *.properties files aren't typically binary files, this is just for sake of example.
7070
mlAdditionalBinaryExtensions=.gradle,.properties
71-
72-
73-
# The configuration directory defaults to src/main/ml-config. You can override this by setting mlConfigDir, as shown
74-
# below. This will result in a new instance of ConfigDir with the given path being set on the instance of AppConfig
75-
# that's created by ml-gradle.
76-
# mlConfigDir=some/other/path
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"range-element-index": [
3-
{
4-
"invalid-values": "reject",
5-
"collation": "",
6-
"localname": "amount",
7-
"namespace-uri": "",
8-
"range-value-positions": false,
9-
"scalar-type": "int"
10-
}
11-
]
12-
}
2+
"database-name": "%%DATABASE%%",
3+
"range-element-index": [
4+
{
5+
"invalid-values": "reject",
6+
"collation": "",
7+
"localname": "amount",
8+
"namespace-uri": "",
9+
"range-value-positions": false,
10+
"scalar-type": "int"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)