@@ -29,16 +29,62 @@ If your plugin requires no arguments, it can use a default constructor which wil
2929Additionally, the plugin framework can create a plugin using a single parameter constructor with
3030a single parameter of type ` PluginSetting ` . This behavior is deprecated and planned for removal.
3131
32- ## Deploying Maven Artifacts
32+ ## Maven artifacts
3333
3434If you are developing a plugin in another Gradle project your project will depend on at least the ` data-prepper-api ` project.
35- You can deploy this artifact locally so that you can add it as a dependency in your other project .
35+ The Data Prepper maintainers publish Data Prepper libraries to Maven Central .
3636
37- Run the following command:
37+ All Maven artifacts are published to the ` org.opensearch.dataprepper ` group id.
38+
39+ ```
40+ org.opensearch.dataprepper:data-prepper-api:2.13.0
41+ ```
42+
43+ As a plugin developer, you should also consider using ` org.opensearch.dataprepper.test:plugin-test-framework ` to test your plugin.
44+
45+ For example, to use in Gradle:
46+
47+ ``` groovy
48+ dependencies {
49+ implementation 'org.opensearch.dataprepper:data-prepper-api:2.13.0'
50+ testImplementation 'org.opensearch.dataprepper.test:plugin-test-framework:2.13.0'
51+ }
52+ ```
53+
54+ Browse using Maven Central:
55+
56+ * https://repo1.maven.org/maven2/org/opensearch/dataprepper/
57+
58+ ### Nightly snapshots
59+
60+ Data Prepper Maven artifacts release nightly snapshot builds.
61+
62+ The Maven repository is:
63+ * ` https://central.sonatype.com/repository/maven-snapshots `
64+
65+ For example, to use in Gradle:
66+
67+ ``` groovy
68+ repositories {
69+ // Other repositories such as mavenCentral()
70+ maven {
71+ name = "Snapshots"
72+ url = "https://central.sonatype.com/repository/maven-snapshots"
73+ }
74+ }
75+ ```
76+
77+ ### Deploying Maven artifacts from local
78+
79+ You can deploy Data Prepper artifacts locally so that you can add add any local changes as a dependency in your plugin project.
80+
81+ From the Data Prepper repository, run the following command:
3882
3983```
4084./gradlew publishToMavenLocal
4185```
4286
4387The Maven artifacts will then be available in your local Maven repository. In standard environments
4488they will be available at ` ${USER}/.m2/repository/org/opensearch/dataprepper/ ` .
89+
90+ Be sure to enable ` mavenLocal() ` as a repository in your plugin's build project.
0 commit comments