当前位置:网站首页>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 .
边栏推荐
- Go语言自学系列 | golang中的if else if语句
- 秒杀系统3-商品列表和商品详情
- Calibre LVL
- Popular understanding of linear regression (I)
- Win10 enterprise 2016 long term service activation tutorial
- Markdown file titles are all reduced by one level
- Qt常用语句备忘
- 秒殺系統3-商品列錶和商品詳情
- Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
- 视觉上位系统设计开发(halcon-winform)-1.流程节点设计
猜你喜欢

Vs2017 is driven by IP debugging (dual machine debugging)

Unity功能——Unity离线文档下载及使用

Summary of concurrent full knowledge points

GCC cannot find the library file after specifying the link library path

整形和浮点型是如何在内存中的存储

Microservices - load balancing ribbon

Unity function - unity offline document download and use

【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器

UnityShader——MaterialCapture材质捕捉效果 (翡翠斧头)

Seckill system 3- product list and product details
随机推荐
使用AUR下载并安装常用程序
QT common sentence notes
leetcode_ Power of Four
Analysis of development mode process based on SVN branch
qt使用QZxing生成二维码
视觉上位系统设计开发(halcon-winform)-5.相机
子类隐藏父类的同名函数
UnityShader——MaterialCapture材质捕捉效果 (翡翠斧头)
Matlab r2011b neural network toolbox precautions
Visual upper system design and development (Halcon WinForm) -4 Communication management
Intelij idea efficient skills (III)
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
Vs2017 is driven by IP debugging (dual machine debugging)
Visual host system design and development (Halcon WinForm)
Digital image processing -- popular understanding of corrosion and expansion
Atlas atlas torque gun USB communication tutorial based on mtcom
Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
Visual upper system design and development (Halcon WinForm) -1 Process node design
Popular understanding of random forest
[combinatorial mathematics] binomial theorem and combinatorial identity (binomial theorem | three combinatorial identities | recursive formula 1 | recursive formula 2 | recursive formula 3 Pascal / Ya