Series of articles look here

Gradle gets started and builds the environment

Gradle is an introduction to meta-programming

Gradle: Groovy syntax for getting started

Gradle introduction and lifecycle

Gradle core project

How to create a Gradle plugin by yourself

What is a Transform in Gradle?

preface

Gradle is currently mainly used during project construction, if we need to know gradle. First, you need to be familiar with Grooy’s syntax. This section will set up groovy’s environment for subsequent learning.

Groovy Environment Setup

Groovy SDK download

  • Download groovy/libexec from groovy/libexec.
  • The brew install groovy directory select/usr/local/opt/groovy/libexec. (In addition, idea cannot be cut to /user directory, MAC press Cmd + Shift + G to switch directory)

Environment Variable Configuration

Open the edit environment variable text with sudo vim ~/.bash_profile. At the end and export a GROOVY_HOME = / usr/local/opt/groovy/libexec. Then save by esc+:wq

Gradle project

Create a new Groovy project in idea. As follows:

Once the project is created, we’ll create a new Groovy file and add hello World as follows:

Output hello World.

This article was first published on my personal blog Gradle Getting Started and Building Environments

More articles please pay attention to my public number: code nong workplace