once the gradle is installed, now it is time to explore the functionalities of the gradle.
1. generating new java project with gradle.
it is possible to generate simple java project with maven as follows.
maven
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart
the gradle also supported to generate project as follows.
gradle
gradle init --type java-library
2. converting the maven project to gradle.
it is possible to convert the maven project to gradle without any problem. it will create the build.gradle file and declare all the dependencies and other plugins declared in the pom.xml into the build.gradle file. In order to convert the maven project to gradle, you need to execute the following command from the same directory of the project where the pom.xml file is located.
gradle init
Hope this will helpful for you!
1. generating new java project with gradle.
it is possible to generate simple java project with maven as follows.
maven
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart
the gradle also supported to generate project as follows.
gradle
gradle init --type java-library
2. converting the maven project to gradle.
it is possible to convert the maven project to gradle without any problem. it will create the build.gradle file and declare all the dependencies and other plugins declared in the pom.xml into the build.gradle file. In order to convert the maven project to gradle, you need to execute the following command from the same directory of the project where the pom.xml file is located.
gradle init
Hope this will helpful for you!
Thanks
Chathuranga Tennakoon
chathuranga.t@gmail.com
http://www.chathurangaonline.com
No comments:
Post a Comment