First, MyEclipse integrated Gradle plug-in development

Source: Internet
Author: User
Tags documentation zip

Using Android Studio for a long time, add a variety of dependencies on the Gradle, Jar is handy.

Now you are ready to use MyEclipse to develop a fast-developing framework for Java EE, and to learn about MAVEN, but still prepare to use Gradle to do a wave.


Based on the Gradle development documentation, the prerequisites for using Gradle are based on JDK1.7 or more.

--------------------------------------------------------------------------------------

Use manual installation. Download the complete code and documentation.

The current Gradle release are version 3.5, released on APR 2017.

Complete (with docs and sources) Https://services.gradle.org/distributions/gradle-3.5-all.zip

--------------------------------------------------------------------------------------

Decompression Gradle-3.5-all.zip


and add it in the environment variable.


System variable path is located to the Bin folder under Gradle


--------------------------------------------------------------------------------------
Check if the installation is successful



--------------------------------------------------------------------------------------

Installing the Gradle plugin inside the MyEclipse


--------------------------------------------------------------------------------------Test Gradle Build a project, create a new Gradle project

Quickly build a common Java project

Project structure that was successfully built

Gradle some directories exist with default values, the proposed configuration of the project inherits the Maven style, such as:
Java Source directory: Src/main/java
Java Test Code Catalog: Src/test/java
Resource Files directory: src/main/resources
Resource directory for testing: src/test/resources
Directory for Web project: Src/main/webapp can be changed by Webappdirname variable ex:webappdirname= "WebApp"

--------------------------------------------------------------------------------------

View Build.gradle File


When a build is used with Gradle, it appears

Warning: [options] does not set the bootstrap classpath with-source 1.5

Please modify sourcecompatibility as the current JDK version

--------------------------------------------------------------------------------------Use Gradle Build folder is generated in the root directory after the build command is packaged successfully





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.