File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed
examples/local-testing-project Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,4 @@ to your local Maven repository.
5454You can then repeat this process as often as you want - i.e. make more changes in the ml-gradle source, publish a new
5555copy 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.
Original file line number Diff line number Diff line change 1+ /bin
2+ .classpath
3+ .project
4+ /build
5+ .gradle
6+ .settings
7+ src
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments