当前位置:网站首页>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 .

边栏推荐
- How does Apache, the world's largest open source foundation, work?
- Learn about spark project on nebulagraph
- 一文详解:TMP1750芯片 三通道线性LED驱动器
- 【2018】【论文笔记】石墨烯场效应管及【1】——GFETs的种类和原理,GFETs特性,GFETs在太赫兹中的应用和原理
- Foundation of class
- How to evaluate the accuracy of stock analysts' prediction?
- 【游戏建模模型制作全流程】用ZBrush制作游戏士兵角色
- Great God "magic change" airpods, equipped with usb-c interface, 3D printing shell makes maintenance easier
- 类的基础
- BOM系列之BOM介绍
猜你喜欢

Is learning next generation modeling a good scene or a good role? Choose the right profession and pay more than half
![[sharing game modeling model making skills] how ZBrush adjusts the brush size](/img/12/4c9be15266bd01c17d6aa761e6115f.png)
[sharing game modeling model making skills] how ZBrush adjusts the brush size

Is 3D modeling promising? Is employment guaranteed with high salary or is it more profitable to take orders in sideline industry

作为3D资深建模师给刚入门学习伙伴的一些建议,用起来

如何评估券商分析师预测股票涨跌的准确性?

MQ【MessageQueue 图文详解及四大MQ比较】

1259. 不相交的握手 动态规划

如何成为建模师?工业建模和游戏建模哪一个更加吃香?

Have a safe summer vacation, no holidays! Please keep these summer safety tips

Flink Exactly-Once 投递实现浅析
随机推荐
作为3D资深建模师给刚入门学习伙伴的一些建议,用起来
Behind the recovery of the B-END Market: who stands in front of the stage?
【游戏建模模型制作全流程】用ZBrush制作游戏士兵角色
Paddlenlp之UIE分类模型【以情感倾向分析新闻分类为例】含智能标注方案)
Oracle database version after 11C uses memory_ Target automatic memory management
integer 和==比较
【2020】【论文笔记】基于Rydberg原子的——
80+嘉宾登台,10余国用户参会,7万+观众收看,「GWEI 2022-新加坡」落幕
1259. 不相交的握手 動態規劃
Huawei fat thin AP switching method
入门学习3D建模一般会遇到哪些问题?实在是太多了
LM393低功耗双电压比较器参数、引脚、应用详解
BOM introduction of BOM series
如何评估券商分析师预测股票涨跌的准确性?
Gradle【图文安装及使用演示 精讲】
栈/堆/队列刷题(中)
多线程【全面学习 图文精讲】
Modeling just learning is very confused. How to learn the next generation role modeling process?
【2013】【论文笔记】太赫兹波段纳米颗粒表面增强拉曼——
How to become a modeler? Which is more popular, industrial modeling or game modeling?