-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #684 from marklogic/feature/bundle-project
#676 Simplified example project for bundles
- Loading branch information
Showing
16 changed files
with
45 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
examples/dependency-project/dhf-client-project/build.gradle
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
examples/dependency-project/dhf-client-project/gradle.properties
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
examples/dependency-project/dhf-client-project/src/main/ml-data/testdata/test1.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
examples/dependency-project/dhf-client-project/src/main/ml-data/testdata/test2.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
examples/dependency-project/dhf-client-project/src/main/ml-data/testdata/test3.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
examples/dependency-project/dhf-client-project/src/main/ml-modules/root/my-lib.xqy
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
examples/dependency-project/dhf-client-project/src/main/ml-schemas/tde/my-template.json
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
examples/dependency-project/ml-gradle-client-project/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,12 @@ | ||
//buildscript { | ||
// repositories { | ||
// mavenCentral() | ||
// mavenLocal() | ||
// } | ||
// dependencies { | ||
// classpath "com.marklogic:ml-gradle:4.2.0" | ||
// } | ||
//} | ||
|
||
plugins { | ||
id "net.saliman.properties" version "1.5.1" | ||
id "com.marklogic.ml-gradle" version "4.6.0" | ||
} | ||
|
||
//apply plugin: "com.marklogic.ml-gradle" | ||
|
||
repositories { | ||
mavenLocal() | ||
} | ||
|
||
dependencies { | ||
mlBundle "com.marklogic:example-dependency:1.0.0" | ||
} | ||
|
||
task testPlugin(type: com.marklogic.gradle.task.ServerEvalTask) { | ||
description = "Run this to verify that the plugin from the example-dependency bundle was installed correctly; should get 66.67 as a result" | ||
javascript = "cts.aggregate('native/varianceplugin', 'variance', cts.elementReference(xs.QName('amount')))" | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/dependency-project/ml-gradle-client-project/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
examples/dependency-project/provider-with-plugin-project/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
plugins { | ||
id "maven-publish" | ||
} | ||
|
||
group = "com.marklogic" | ||
version = "1.0.0" | ||
|
||
configurations { | ||
bundle | ||
} | ||
|
||
task bundleJar(type: Jar) { | ||
from("src/main/ml-plugins") { | ||
into("example-dependency/ml-plugins") | ||
} | ||
destinationDirectory = file("build/libs") | ||
archiveBaseName = "example-dependency-with-plugin" | ||
} | ||
|
||
artifacts { | ||
bundle bundleJar | ||
} | ||
|
||
publishing { | ||
publications { | ||
mainBundle(MavenPublication) { | ||
artifactId "example-dependency-with-plugin" | ||
artifact bundleJar | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.