Skip to content

Feature/add support build gradle - #158

Merged
omatheusmesmo merged 16 commits into
BuildCLI:developfrom
felipemelozx:feature/add-support-build-gradle
Feb 13, 2025
Merged

omatheusmesmo merged 16 commits into
BuildCLI:developfrom
felipemelozx:feature/add-support-build-gradle

Conversation

@felipemelozx

@felipemelozx felipemelozx commented Feb 10, 2025 •

Copy link
Copy Markdown
Contributor

Description

This PR introduces a detection mechanism to determine whether a project uses Maven or Gradle as its build tool. Based on the detection, the BuildCommand now runs either Maven or Gradle commands for compiling or packaging the project. If neither build tool is detected, an error message is logged.

Related Issues

Add Support for Other Build Tools fixes #44

Changes

  • Added the checkIsMavenOrGradle method to ToolChecks to detect build tool.
  • Create abstract BuildTool class for common build tool structure
  • Add GradleInstaller class to automate Gradle installation
  • Create the GradleProcess class for managing Gradle tasks and installation
  • Make MavenProcess extend BuildTool for consistency with GradleProcess
  • Updated BuildCommand to use the detected build tool for running commands (MavenProcess or GradleProcess).

Checklist

  • My code follows the code style of this project
  • I have added necessary documentation (if applicable)
  • I have manually tested the changes and verified the feature works as expected
  • I have run tests to check that my changes do not break existing code

Additional Notes

No automated tests have been added.

@omatheusmesmo

Copy link
Copy Markdown
Collaborator

@felipemelozx , for your information, I'm starting this review right now. 🏃‍♂️

@omatheusmesmo
omatheusmesmo changed the base branch from main to develop February 12, 2025 16:49
@omatheusmesmo

Copy link
Copy Markdown
Collaborator

@felipemelozx , great job, congrats on one more PR closed! 🥇 ☕

@omatheusmesmo
omatheusmesmo merged commit c50603c into BuildCLI:develop Feb 13, 2025
@omatheusmesmo omatheusmesmo mentioned this pull request Feb 21, 2025
DumiJDev pushed a commit to DumiJDev/BuildCLI that referenced this pull request Sep 3, 2025
…-build-gradle

Feature/add support build gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants