Gradle Tutorial
Introduction Installation Creating project using command line Simple gradle project in IntelliJ IDEA build.gradle file settings.gradle file Directory structure of Gradle project Built-in tasks User defined tasks Task dependencies Running gradle tasks Grouping tasks Repository management in Gradle Declaring dependencies in Gradle JUnit TestNG Test execution reports in Gradle Creating executable Jar using Gradle Generating project API documentation in Gradle Publishing and deployment of artifact in GradleCreating executable jar in gradle
We can create an executable Jar by following below steps.- In build.gradle file, include jar task. In that task, provide the manifest information – main class that contains main method.
- Then execute the jar task using gradle jar command
- Above command will create the jar file in build/libs directory of the project
- From the command line, execute java -jar jarfilename.jar
Web development and Automation testing
solutions delivered!!