当前位置:网站首页>Create gradle project
Create gradle project
2022-07-03 15:36:00 【crysw】
1. Installation configuration Gradle
1.1 download gradle
Download... On the official website gradle package 
1.2 IDEA install gradle plug-in unit
Direct will gradle-5.2.1-bin.zip The bag dragged to IDEA Inside , And then restart IDEA, You can see that IDEA It's already installed gradle plug-in unit .
1.3 IDEA To configure gradle structure

1.4 Configure environment variables
To configure GRADLE_HOME, The value is local gradle Plug in location .
To configure path, add to ;%GRADLE_HOME%\bin
2. Create parent project
establish gradle The parent project ssm-parent-demo.

3. Create submodule
Create submodule mybatis-demo, pwd-encrypt-decipher,spring-aop-demo,spring-jdbc-demo,spring-basic-demo, spring-mvc-demo, spring-redis-demo.



The creation process of each sub module is omitted here , Look at the renderings .
4. Write build scripts
4.1 Default build file
After the above modules are created , Will generate a settings.gradle file , It contains all the sub modules created .

4.2 Write build scripts
New build script file build.gradle, Write the built script plug-in library , nexus Private server address and other information .

4.3 Write dependency configuration
above build.gradle Files can also be directly added with dependencies , In order to facilitate the independent management of each module , Extract dependencies into the configuration file dependencies.gradle In file , Then reference this configuration file .

4.4 Write environment parameter configuration
Create environment parameter configuration file gradle.properties.
5. Build packaging
After all the above steps are completed , The business code in the module omits the steps …, open gradle Build window .
build Many of the following plug-ins can be used , and maven almost , such as clean, build, war wait . double-click war Plug ins can be built war package .

If packageType by bootjar, Refresh gradle after , build There will be bootjar plug-in unit , double-click bootjar You can build jar package .
边栏推荐
- App移动端测试【3】ADB命令
- 如何使用 @NotNull等注解校验 并全局异常处理
- Problems of CString in multithreading
- SQL server installation location cannot be changed
- QT common sentence notes
- Jvm-02-class loading subsystem
- WinDbg分析dump文件
- [cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
- Idea does not specify an output path for the module
- XWiki Installation Tips
猜你喜欢

Detailed pointer advanced 1

Halcon与Winform学习第一节

Basic SQL tutorial

Intelij idea efficient skills (III)

Kubernetes带你从头到尾捋一遍
![[系统安全] 四十三.Powershell恶意代码检测系列 (5)抽象语法树自动提取万字详解](/img/cd/00954b9c592c253d42e6a3b8298999.jpg)
[系统安全] 四十三.Powershell恶意代码检测系列 (5)抽象语法树自动提取万字详解

Can‘t connect to MySQL server on ‘localhost‘

Kubernetes帶你從頭到尾捋一遍

Characteristics of MySQL InnoDB storage engine -- Analysis of row lock

Digital image processing -- popular Canny edge detection
随机推荐
Halcon与Winform学习第二节
Driver and application communication
Matplotlib drawing label cannot display Chinese problems
Seckill system 2 redis solves the problem of distributed session
如何使用 @NotNull等注解校验 并全局异常处理
Redis cache penetration, cache breakdown, cache avalanche solution
秒杀系统1-登录功能
Tensorflow realizes verification code recognition (I)
Chapter 04_ Logical architecture
Microservice API gateway zuul
Reading notes of "micro service design" (Part 2)
WinDbg analysis dump file
Kubernetes 进阶训练营 Pod基础
The difference between mutually exclusive objects and critical areas
The wonderful use of do{}while()
How to use annotations such as @notnull to verify and handle global exceptions
Introduction series of software reverse cracking (1) - common configurations and function windows of xdbg32/64
Dataframe returns the whole row according to the value
Calibre LVL
[combinatorial mathematics] binomial theorem and combinatorial identity (binomial theorem | three combinatorial identities | recursive formula 1 | recursive formula 2 | recursive formula 3 Pascal / Ya