-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Move the CLI into its own subproject #27114
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
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c4308ce
Move the CLI into its own subproject
hub-cap c6cc762
nit cleanup on file
hub-cap 73745ea
Merge branch 'master' of github.com:elastic/elasticsearch into plugin…
hub-cap 7eda8e2
Incorporate changes from review
hub-cap 12dd213
Fixing the concurrent modification error
hub-cap e248c16
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 9c61c51
Missed dep in tests
hub-cap 037259c
Missed another, grr
hub-cap dcdaaf8
Fixing deplicenses for cli
hub-cap 9cd8a89
Skip tests as there are none... should we move them?
hub-cap 62612ac
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap db9980e
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 87448d3
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap b1cfecb
Fixing the jarHell I had gotten myself into with adding the jar and c…
hub-cap 1e0a98c
Funky cleanup with deps in the wrong place. I need to figure out why …
hub-cap c179020
Cleanup on licenses
hub-cap 75db462
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 21ed445
Removing jarHell since it does not have access to bootstrap.JarHell
hub-cap 1fb5f1b
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 94bbb74
PR nits
hub-cap 905546b
package->default as per PR
hub-cap 2ead8d6
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 529f7f5
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 2c366c1
Merge remote-tracking branch 'upstream/master' into plugins/separate_cli
hub-cap 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * Licensed to Elasticsearch under one or more contributor | ||
| * license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright | ||
| * ownership. Elasticsearch licenses this file to you under | ||
| * the Apache License, Version 2.0 (the "License"); you may | ||
| * not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| import org.elasticsearch.gradle.precommit.PrecommitTasks | ||
|
|
||
| apply plugin: 'elasticsearch.build' | ||
|
|
||
| archivesBaseName = 'elasticsearch-cli' | ||
|
|
||
| dependencies { | ||
| compile 'net.sf.jopt-simple:jopt-simple:5.0.2' | ||
| } | ||
|
|
||
| test.enabled = false | ||
| // Since CLI does not depend on :core, it cannot run the jarHell task | ||
| jarHell.enabled = false | ||
|
|
||
| forbiddenApisMain { | ||
| signaturesURLs = [PrecommitTasks.getResource('/forbidden/jdk-signatures.txt')] | ||
| } | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
core/cli/src/main/java/org/elasticsearch/cli/SuppressForbidden.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,34 @@ | ||
| /* | ||
| * Licensed to Elasticsearch under one or more contributor | ||
| * license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright | ||
| * ownership. Elasticsearch licenses this file to you under | ||
| * the Apache License, Version 2.0 (the "License"); you may | ||
| * not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
| package org.elasticsearch.cli; | ||
|
|
||
| import java.lang.annotation.ElementType; | ||
| import java.lang.annotation.Retention; | ||
| import java.lang.annotation.RetentionPolicy; | ||
| import java.lang.annotation.Target; | ||
|
|
||
| /** | ||
| * Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field. | ||
| */ | ||
| @Retention(RetentionPolicy.CLASS) | ||
| @Target({ ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE }) | ||
| public @interface SuppressForbidden { | ||
| String reason(); | ||
| } | ||
|
|
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
File renamed without changes.
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should refactor out the JAR hell check too, as there are other places where we will want to run JAR hell checks that will not depend on core.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as part of this PR or just as a separate issue @jasontedor ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hub-cap Separate is fine.