![]() If we observe both Gradle adle file and maven pom.xml file, we can observe that maven’s pom.xml file is XML file and need a lot of XML start tags and end tags. ![]() Convert Gradle to Mavenįinally, if we convert our Gradle’s adle build file into Maven’s pom.xml file, it will looks like the following: Here we are informing to Gradle eclipse plugin that use maven repository to download required dependencies. We use the following Gradle build script element to define our required repository to connect and download our project dependencies to the Local Repository. Gradle’s “name” element is similar to Maven’s “artifactId” element and Gradle’s “version” element is similar to Maven’s “version” element. By default, Eclipse Gradle plugin refers to Java 1.5 using “sourceCompatibility” element as shown below: If we observe at line 4, it is referring to sourceCompatibility with value as 1.5. TestCompile group: 'junit', name: 'junit', version: '4.+'īelow is the explanation of different elements one by one. ![]() ![]() Below is the adle file from our earlier gradle example project.Īttributes 'Implementation-Title': 'Gradle Quickstart',Ĭompile group:'commons-collections',name:'commons-collections',version:'3.2' While discussing the gradle tutorial points, I will refer the adle file from my previous post. Please go through each and every section clearly. This post is very important for gradle beginners to understand gradle build script.
0 Comments
Leave a Reply. |