-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add extensions to gradle plugin #7235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
owaiskazi19
merged 9 commits into
opensearch-project:main
from
ryanbogan:add_extensions_to_gradle_plugin
May 3, 2023
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7e0193e
Add extension functionality to OpenSearch gradle plugin
ryanbogan 309d56e
Modify gradle plugin to run both extensions and plugins
ryanbogan bc7e6ab
Fix spotless
ryanbogan 7751eeb
Merge branch 'main' into add_extensions_to_gradle_plugin
ryanbogan dd2ca00
Change feature flag initialization
ryanbogan 5c24aaf
Address PR comments
ryanbogan 1ecb4ab
Merge branch 'main' into add_extensions_to_gradle_plugin
ryanbogan 9ebca49
Merge branch 'main' into add_extensions_to_gradle_plugin
ryanbogan 1458858
Change error method and remove unnecessary feature flag setting
ryanbogan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
buildSrc/src/main/java/org/opensearch/gradle/testclusters/ExtensionsProperties.java
This file contains hidden or 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,93 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * The OpenSearch Contributors require contributions made to | ||
| * this file be licensed under the Apache-2.0 license or a | ||
| * compatible open source license. | ||
| */ | ||
|
|
||
| package org.opensearch.gradle.testclusters; | ||
|
|
||
| public class ExtensionsProperties { | ||
| private String name; | ||
| private String uniqueId; | ||
| private String hostAddress; | ||
| private String port; | ||
| private String version; | ||
| private String opensearchVersion; | ||
| private String minimumCompatibleVersion; | ||
|
|
||
| public ExtensionsProperties( | ||
| String name, | ||
| String uniqueId, | ||
| String hostAddress, | ||
| String port, | ||
| String version, | ||
| String opensearchVersion, | ||
| String minimumCompatibleVersion | ||
| ) { | ||
| this.name = name; | ||
| this.uniqueId = uniqueId; | ||
| this.hostAddress = hostAddress; | ||
| this.port = port; | ||
| this.version = version; | ||
| this.opensearchVersion = opensearchVersion; | ||
| this.minimumCompatibleVersion = minimumCompatibleVersion; | ||
| } | ||
|
|
||
| public String getName() { | ||
| return name; | ||
| } | ||
|
|
||
| public void setName(String name) { | ||
| this.name = name; | ||
| } | ||
|
|
||
| public String getUniqueId() { | ||
| return uniqueId; | ||
| } | ||
|
|
||
| public void setUniqueId(String uniqueId) { | ||
| this.uniqueId = uniqueId; | ||
| } | ||
|
|
||
| public String getHostAddress() { | ||
| return hostAddress; | ||
| } | ||
|
|
||
| public void setHostAddress(String hostAddress) { | ||
| this.hostAddress = hostAddress; | ||
| } | ||
|
|
||
| public String getPort() { | ||
| return port; | ||
| } | ||
|
|
||
| public void setPort(String port) { | ||
| this.port = port; | ||
| } | ||
|
|
||
| public String getVersion() { | ||
| return version; | ||
| } | ||
|
|
||
| public void setVersion(String version) { | ||
| this.version = version; | ||
| } | ||
|
|
||
| public String getOpensearchVersion() { | ||
| return opensearchVersion; | ||
| } | ||
|
|
||
| public void setOpensearchVersion(String opensearchVersion) { | ||
| this.opensearchVersion = opensearchVersion; | ||
| } | ||
|
|
||
| public String getMinimumCompatibleVersion() { | ||
| return minimumCompatibleVersion; | ||
| } | ||
|
|
||
| public void setMinimumCompatibleVersion(String minimumCompatibleVersion) { | ||
| this.minimumCompatibleVersion = minimumCompatibleVersion; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
27 changes: 27 additions & 0 deletions
27
buildSrc/src/main/java/org/opensearch/gradle/testclusters/TestExtensionsList.java
This file contains hidden or 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,27 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * The OpenSearch Contributors require contributions made to | ||
| * this file be licensed under the Apache-2.0 license or a | ||
| * compatible open source license. | ||
| */ | ||
|
|
||
| package org.opensearch.gradle.testclusters; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public class TestExtensionsList { | ||
| private List<ExtensionsProperties> extensions; | ||
|
|
||
| public TestExtensionsList(List<ExtensionsProperties> extensionsList) { | ||
| extensions = extensionsList; | ||
| } | ||
|
|
||
| public List<ExtensionsProperties> getExtensions() { | ||
| return extensions; | ||
| } | ||
|
|
||
| public void setExtensions(List<ExtensionsProperties> extensionsList) { | ||
| extensions = extensionsList; | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.