Skip to content

Commit

Permalink
KAFKA-14593: Move LeaderElectionCommand to tools (#13204)
Browse files Browse the repository at this point in the history
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Federico Valeri <fedevaleri@gmail.com>
  • Loading branch information
OmniaGM committed Oct 3, 2023
1 parent 8f8dbad commit 7553d3f
Show file tree
Hide file tree
Showing 10 changed files with 770 additions and 662 deletions.
2 changes: 1 addition & 1 deletion bin/kafka-leader-election.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

exec $(dirname $0)/kafka-run-class.sh kafka.admin.LeaderElectionCommand "$@"
exec $(dirname $0)/kafka-run-class.sh org.apache.kafka.tools.LeaderElectionCommand "$@"
2 changes: 1 addition & 1 deletion bin/windows/kafka-leader-election.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.

"%~dp0kafka-run-class.bat" kafka.admin.LeaderElectionCommand %*
"%~dp0kafka-run-class.bat" org.apache.kafka.tools.LeaderElectionCommand %*
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ project(':core') {
implementation project(':server-common')
implementation project(':group-coordinator')
implementation project(':metadata')
implementation project(':storage:api')
implementation project(':storage:storage-api')
implementation project(':tools:tools-api')
implementation project(':raft')
implementation project(':storage')
Expand Down Expand Up @@ -915,7 +915,7 @@ project(':core') {
testImplementation project(':metadata').sourceSets.test.output
testImplementation project(':raft').sourceSets.test.output
testImplementation project(':server-common').sourceSets.test.output
testImplementation project(':storage:api').sourceSets.test.output
testImplementation project(':storage:storage-api').sourceSets.test.output
testImplementation libs.bcpkix
testImplementation libs.mockitoCore
testImplementation(libs.apacheda) {
Expand Down Expand Up @@ -1638,7 +1638,7 @@ project(':server-common') {
}
}

project(':storage:api') {
project(':storage:storage-api') {
archivesBaseName = "kafka-storage-api"

dependencies {
Expand Down Expand Up @@ -1714,7 +1714,7 @@ project(':storage') {
}

dependencies {
implementation project(':storage:api')
implementation project(':storage:storage-api')
implementation project(':server-common')
implementation project(':clients')
implementation libs.caffeine
Expand Down
289 changes: 0 additions & 289 deletions core/src/main/scala/kafka/admin/LeaderElectionCommand.scala

This file was deleted.

Loading

0 comments on commit 7553d3f

Please sign in to comment.