Gradle VM by Anarion Technologies
Gradle: Gradle is an open-source build automation tool designed to simplify and enhance the software development lifecycle. It provides a highly customizable platform to automate tasks such as compiling source code, running tests, packaging binaries, and deploying applications. Gradle supports a wide range of programming languages, including Java, Kotlin, Groovy, and more, and is particularly well-known for its use in Android development.
One of Gradle’s standout features is its flexible build scripting, which can be written in Groovy or Kotlin DSL, allowing developers to create complex and tailored build workflows. It excels in dependency management, automatically resolving and downloading required libraries, reducing the manual effort for developers. Gradle’s incremental build and caching capabilities ensure faster build times by processing only the changes made since the last build.
Gradle is designed for scalability, making it suitable for small projects as well as enterprise-grade applications with intricate build pipelines. Its extensive plugin ecosystem allows for seamless integration with a variety of tools, frameworks, and CI/CD systems, enabling teams to automate end-to-end workflows. With features like advanced task scheduling, multi-project builds, and fine-grained parallel execution, Gradle significantly boosts productivity and reduces development cycle times.
By offering an efficient, extensible, and high-performance build system, Gradle has become a go-to choice for developers aiming to streamline their workflows, improve build speed, and maintain consistency across projects.
To subscribe to this product from Azure Marketplace and initiate an instance using the Azure compute service, follow these steps:
1. Navigate to Azure Marketplace and subscribe to the desired product.
2. Search for “virtual machines” and select “Virtual machines” under Services.
3. Click on “Add” in the Virtual machines page, which will lead you to the Create a virtual machine page.
4. In the Basics tab:
- Ensure the correct subscription is chosen under Project details.
- Opt for creating a new resource group by selecting “Create new resource group” and name it as “myResourceGroup.”
5. Under Instance details:
- Enter “myVM” as the Virtual machine name.
- Choose “East US” as the Region.
- Select “Ubuntu 18.04 LTS” as the Image.
- Leave other settings as default.
6. For Administrator account:
- Pick “SSH public key.”
- Provide your user name and paste your public key, ensuring no leading or trailing white spaces.
7. Under Inbound port rules > Public inbound ports:
- Choose “Allow selected ports.”
- Select “SSH (22)” and “HTTP (80)” from the drop-down.
8. Keep the remaining settings at their defaults and click on “Review + create” at the bottom of the page.
9. The “Create a virtual machine” page will display the details of the VM you’re about to create. Once ready, click on “Create.”
10. The deployment process will take a few minutes. Once it’s finished, proceed to the next section.
To connect to the virtual machine:
1. Access the overview page of your VM and click on “Connect.”
2. On the “Connect to virtual machine” page:
- Keep the default options for connecting via IP address over port 22.
- A connection command for logging in will be displayed. Click the button to copy the command. Here’s an example of what the SSH connection command looks like:
“`
ssh [email protected]
“`
3. Using the same bash shell that you used to generate your SSH key pair, you can either reopen the Cloud Shell by selecting >_ again
or going to https://shell.azure.com/bash.
4. Paste the SSH connection command into the shell to initiate an SSH session.
Usage/Deployment Instructions
Anarion Technologies – Gradle
Note: Search product on Azure marketplace and click on “Get it now”
Click on Continue
Click on Create
Creating a Virtual Machine, enter or select appropriate values for zone, machine type, resource group and so on as per your choice.
After Process of Create Virtual Machine. You have got an Option Go to Resource Group
Click Go to Resource Group
Copy the Public IP Address
SSH into terminal & Run these Commands:
$ sudo su
$ sudo apt update
$ cd ../../
Add Gradle to the system’s PATH:
$ cd /opt/gradle/
$ echo ‘export PATH=$PATH:/opt/gradle/latest/bin’ | sudo tee /etc/profile.d/gradle.sh
$ sudo chmod +x /etc/profile.d/gradle.sh
$ source /etc/profile.d/gradle.sh
$ gradle –version
Create a
Test Project
Run the following commands to create a sample Gradle
project:
$ mkdir gradle-test
$ cd gradle-test
$ gradle init
Choose
Project Settings
When prompted, choose the following
options:
- Type of project: Application
- Language: Java (or your preferred language)
- Build script DSL: Groovy
- Test framework: JUnit
- Default values for the rest.
Build the Project
Navigate to the project directory and build it:
$ gradle build
Run the Application
If the project was generated as an application, run it with:
$ gradle run
Expected Results If everything is working, the build and run commands should complete successfully, displaying output like:
ThankYou!!!