当前位置:网站首页>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 .
边栏推荐
- Microservice - declarative interface call openfeign
- Popular understanding of ovo and ovr
- Chapter 04_ Logical architecture
- Redis高可用与持久化
- WinDbg分析dump文件
- 视觉上位系统设计开发(halcon-winform)-5.相机
- Using multipleoutputs to output multiple files in MapReduce
- Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
- Analysis of development mode process based on SVN branch
- Win10 enterprise 2016 long term service activation tutorial
猜你喜欢
Halcon与Winform学习第一节
App移动端测试【5】文件的写入、读取
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
Popular understanding of ovo and ovr
Visual upper system design and development (Halcon WinForm) -5 camera
Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
Dataframe returns the whole row according to the value
Kubernetes advanced training camp pod Foundation
Jvm-04-runtime data area heap, method area
CString getbuffer and releasebuffer instructions
随机推荐
win32创建窗口及按钮(轻量级)
使用AUR下载并安装常用程序
Detailed explanation of string function and string function with unlimited length
Subclass hides the function with the same name of the parent class
视觉上位系统设计开发(halcon-winform)-4.通信管理
Use percent sign in CString
Automatic generation of client code from flask server code -- Introduction to flask native stubs Library
Popular understanding of decision tree ID3
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
Kubernetes带你从头到尾捋一遍
The wonderful use of do{}while()
WinDbg analysis dump file
Kubernetes - YAML文件解读
驱动与应用程序通信
视觉上位系统设计开发(halcon-winform)-2.全局变量设计
Redis cache penetration, cache breakdown, cache avalanche solution
Custom annotation
Backtracking method to solve batch job scheduling problem
Introduction to redis master-slave, sentinel and cluster mode