This project demonstrates how to build and run a simple Java application using the Gradle build automation tool. The project was completed as part of the CodeAlpha DevOps Internship program.
The objective of this project is to understand how Gradle works for building Java applications and automating the build process.
Main goals:
- Learn Gradle project structure
- Build a Java application using Gradle
- Run the application using Gradle commands
- Understand build automation
Java (OpenJDK)
Gradle
Command Prompt (CMD)
Git & GitHub
Java-Gradle-App │ ├── app │ └── src │ └── main │ └── java │ └── App.java │ ├── gradle ├── gradlew ├── gradlew.bat ├── settings.gradle └── build.gradle
public class App {
public static void main(String[] args) {
System.out.println("Hello from CodeAlpha DevOps Internship!");
}
}
Step 1: Navigate to the project folder
cd A:\Java-Gradle-App
Step 2: Build the project
gradlew build
Step 3: Run the application
gradlew run
Hello from CodeAlpha DevOps Internship!
- Introduction to Gradle build automation
- Creating and managing Java projects
- Running applications using Gradle
- Understanding Gradle project structure
Internship Provider: CodeAlpha
Domain: DevOps
Task: Java Application using Gradle
Shaik Mahamood Anzar
DevOps Intern – CodeAlpha