Skip to content

Commit 1e4016c

Browse files
committed
Added local-testing-project
1 parent 2ef529a commit 1e4016c

File tree

5 files changed

+42
-1
lines changed

5 files changed

+42
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ to your local Maven repository.
5454
You can then repeat this process as often as you want - i.e. make more changes in the ml-gradle source, publish a new
5555
copy to your local Maven repo, and test it in the project you chose.
5656

57-
57+
For a real example, see the "local-testing-project" project in the examples directory.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/bin
2+
.classpath
3+
.project
4+
/build
5+
.gradle
6+
.settings
7+
src
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
This project shows an example of how to depend on an instance of ml-gradle
2+
that you've published to your local Maven repository.
3+
4+
To publish an instance of ml-gradle locally, just do the following:
5+
6+
1. From the ml-gradle root directory, run "publish -Pversion=DEV publishToMavenLocal" (you can pick any version name that you want)
7+
1. Verify manually that the library was published to ~/.m2/com/marklogic/ml-gradle
8+
9+
You should then be able to run "gradle tasks" on this project, and that will use your
10+
locally published copy of ml-gradle. Again, feel free to change the version name to whatever
11+
you want, there's no requirement to use "DEV".
12+
13+
Note that the "src" directory is gitignore'd in this project so that you can add any artifacts you want.
14+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
mavenLocal()
5+
}
6+
dependencies {
7+
classpath "com.marklogic:ml-gradle:${mlGradleVersion}"
8+
}
9+
}
10+
11+
apply plugin: "com.marklogic.ml-gradle"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Set this to the version you used when running
2+
# "gradle -Pversion=(something) publishToMavenLocal" on your local ml-gradle repo
3+
mlGradleVersion=DEV
4+
5+
mlHost=localhost
6+
mlAppName=example
7+
mlRestPort=8123
8+
mlUsername=admin
9+
mlPassword=admin

0 commit comments

Comments
 (0)