当前位置:网站首页>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 .
边栏推荐
- Tensorflow realizes verification code recognition (I)
- Secsha system 1- login function
- Kubernetes带你从头到尾捋一遍
- Visual upper system design and development (Halcon WinForm) -4 Communication management
- 秒杀系统3-商品列表和商品详情
- QT use qzxing to generate QR code
- Seckill system 3- product list and product details
- Qt常用语句备忘
- Large CSV split and merge
- 如何使用 @NotNull等注解校验 并全局异常处理
猜你喜欢

Jvm-06-execution engine

Introduction series of software reverse cracking (1) - common configurations and function windows of xdbg32/64

从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍

Solve the problem that pushgateway data will be overwritten by multiple push

Final review points of human-computer interaction

Microservice - fuse hystrix

Subclass hides the function with the same name of the parent class
![[probably the most complete in Chinese] pushgateway entry notes](/img/5a/6dcb75f5d713ff513ad6842ff53cc3.png)
[probably the most complete in Chinese] pushgateway entry notes
![[系统安全] 四十三.Powershell恶意代码检测系列 (5)抽象语法树自动提取万字详解](/img/cd/00954b9c592c253d42e6a3b8298999.jpg)
[系统安全] 四十三.Powershell恶意代码检测系列 (5)抽象语法树自动提取万字详解

Tensorflow realizes verification code recognition (I)
随机推荐
GCC cannot find the library file after specifying the link library path
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
Visual upper system design and development (Halcon WinForm) -3 Image control
Calibre LVL
Detailed pointer advanced 2
WinDbg analysis dump file
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
Redis在Windows以及Linux系统下的安装
Using multipleoutputs to output multiple files in MapReduce
Popular understanding of linear regression (II)
App mobile terminal test [5] file writing and reading
Unity function - unity offline document download and use
Popular understanding of ovo and ovr
Kubernetes advanced training camp pod Foundation
Popular understanding of gradient descent
Use percent sign in CString
Backtracking method to solve batch job scheduling problem
Jvm-06-execution engine
Go语言自学系列 | golang switch语句
[combinatorics] combinatorial identities (recursive combinatorial identities | sum of variable terms | simple combinatorial identities and | sum of variable terms | staggered sums of combinatorial ide