当前位置:网站首页>Gradle [graphic installation and use demonstration]
Gradle [graphic installation and use demonstration]
2022-07-23 18:42:00 【Xiao Kai, who loves fishing】

One 、 Related introduction
Gradle It's a good build tool , The reason for using it is :
- Less configuration dependent code , Don't like maven equally xml Too much
- Package, compile, test and release , And it's easy to use
- Use custom tasks to complete the functions you want
Two 、 install
Download address http://services.gradle.org/distributions/ , Download the version you need , Here's what I downloaded gradle-4.7-bin.zip. After downloading, unzip it to the directory you want , Then set the environment variable :


stay cmd View in mode , The following information shows that the installation was successful :

Then we can configure in the environment variable gradle Default warehouse address ( and maven Not quite the same. ):

3、 ... and 、IED The use of
1、IDEA
Use idea Create a web Of Gradle project



Then package and run the project :

double-click war

After packing war The file will be :

And then put war Put the corresponding tomcat directory , There's no more explanation here .
2、Eclipse
eclipse Install plug-ins by yourself , The plug-in path is :http://download.eclipse.org/buildship/updates/e46/releases/2.x/ .
Four 、 Problem specification
1、 explain build.gradle and settings.gradle
First, a project contains group、name、version .settings.gradle It is used to manage multiple projects , It contains the project name

stay build.gradle in ,apply It is an application plug-in , Such as :

Here we use java and war Plug in for ,dependencies It is used to declare what the project depends on jar

What's explained here is , We rely on junit Of jar. These include complile( Compile time )runtime( Runtime )testCompile( Test compile time )testRuntime( Test run time ).repositories It's a warehouse gradle They will go to the warehouse in order from top to bottom jar

Here we default to a maven Central warehouse , from gradle The address we see in the source code is like this

Here you can configure , among mavenLocal() Use local maven Warehouse ;mavenCentral() Use maven Central warehouse . Use a fixed address , Alibaba cloud can be used here (maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}) The image download speed of will be faster , Then you can also use the private server address inside the company .

边栏推荐
- 【2018】【论文笔记】石墨烯场效应管及【2】——石墨烯的制备、转移
- Modeling at the beginning of learning is very confused, how to learn next generation role modeling?
- PCL: multi line fitting (RANSAC)
- Jetpack Compose之Navigation组件使用
- MySQL transactions, starting with redo log, bin log, undo log
- How does the NiO mechanism of jetty server cause out of heap memory overflow
- Flutter operation mode
- 【攻防世界WEB】难度三星9分入门题(终):fakebook、favorite_number
- Is it suitable for learning 3D modeling? You can't lose one of these five points
- 多线程【全面学习 图文精讲】
猜你喜欢

Jetpack Compose之Navigation组件使用

80+嘉宾登台,10余国用户参会,7万+观众收看,「GWEI 2022-新加坡」落幕

What problems do you usually encounter when learning 3D modeling? It's too much

入门学习3D建模一般会遇到哪些问题?实在是太多了

入行3D建模有前景吗?就业高薪有保障还是副业接单赚钱多

MySQL transactions, starting with redo log, bin log, undo log

VS2010一个解决方案下新建多个项目出现的问题和方法

Crack WiFi password with Kail

怎么将word中的times new roman的双引号替换成宋体双引号

Time frequency domain analysis of 20220721 integral link
随机推荐
Great God "magic change" airpods, equipped with usb-c interface, 3D printing shell makes maintenance easier
How to realize the digital transformation of the banking industry
ResponseBodyAdvice接口使用导致的报错及解决
Ubuntu 22.04 installing mysql8
ROS (27): the simple use of rosparam and the unsuccessful transfer of parameters through launch and its solution
UAV circulating an unknown target under a GPS deniedenvironment with range only measurements translation
【游戏建模模型制作全流程】用ZBrush制作游戏士兵角色
次世代行业现状如何?90%转行建模师都在学习这套流程
LeetCode 0131. 分割回文串
Rhcsa notes 3
[sharing 3D modeling and production skills] how ZBrush turns pictures into relief models
错误“ Failed to fetch “xxx”Temporary failure resolvingW: Some index files failed to download“解决办法
Gradle【图文安装及使用演示 精讲】
opencv(13):cv2.findContours、cv::findContours简要介绍及opencv各版本cv2.findContours函数说明
基于 softether 搭建虚拟私有网络
【游戏建模模型制作技巧分享】ZBrush如何调整笔刷大小
80+嘉宾登台,10余国用户参会,7万+观众收看,「GWEI 2022-新加坡」落幕
[whole process of game modeling model production] 3ds Max and ZBrush produce radio receivers
元胞数组处理
Is 3D modeling promising? Is employment guaranteed with high salary or is it more profitable to take orders in sideline industry