当前位置:网站首页>gradle尚硅谷笔记
gradle尚硅谷笔记
2022-08-05 10:28:00 【等风来】
gradle安装
1.springboot要求版本6.8以上,并且idea也有gradle版本要求,idea的plugins gradle记录了需要的版本
2.配置环境变量
1)系统变量新建 GRADLE_HOME:gradle解压后的目录
2)系统变量的path中添加: %GRADLE_HOME%/bin
3)配置本地仓库(一般和maven一致) :系统变量新建GRADLE_USER_HOME : maven仓库目录位置
4)打开cmd窗口:gradle -v检测安装是否成功
3.gradle clean,gradle classes,gradle test,gradle build(包含了clean,classes,test,打成jar包)gradle build -x test(跳过测试)
4.切换maven源 在init.d下新建init.gradle
5.gradle wrapper解决实际开发中可能遇到的不同项目需要不同版本的gradle问题
6.gradlew.bat clean (不依赖自己的版本)
7.gradle wrapper --gradle-version=7.4.2(升级wrapper中的版本)
8.下载别人的项目或者自己以前不同版本的gradle时,用Gradle Wapper,也就是gradlew,新建项目时用本地gradle
groovy语法
百度
gradle中的文件说明
setting.gradle 是放置项目结构的,比如父工程,子工程
Task任务
id application 需要指定主类的任务
- 表示最新的版本 不建议这样做,写死版本号
插件
插件用来扩展 task ,比如加入java,这样就可以使用编译,测试等任务
ext :extension表示扩展
第三方插件:
buildScript{} 构建脚本,给第三方插件使用
allprojects{} 所有工程有效
subprojects{} 子工程有效
边栏推荐
- SkiaSharp 之 WPF 自绘 投篮小游戏(案例版)
- 2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
- This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory
- 如何测试一下现场的备机失败,转发主机的场景?
- Is digital transformation a business buy-in?
- PCB layout must know: teach you to correctly lay out the circuit board of the op amp
- 第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
- 第五章:redis持久化,包括rdb和aof两种方式[通俗易懂]
- Still looking for a network backup resources?Hurry up to collect the following network backup resource search artifact it is worth collecting!
- three物体围绕一周呈球形排列
猜你喜欢

化繁为简!阿里新产亿级流量系统设计核心原理高级笔记(终极版)

气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)

技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离

【综合类型第 35 篇】程序员的七夕浪漫时刻

PCB layout must know: teach you to correctly lay out the circuit board of the op amp

The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?

Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)

linux下oracle常见操作以及日常积累知识点(函数、定时任务)

three objects are arranged in a spherical shape around the circumference

FPGA:开发环境Vivado的使用
随机推荐
什么是 DevOps?看这一篇就够了!
SMB + SMB2: Accessing shares return an error after prolonged idle period
SMB + SMB2: Accessing shares return an error after prolonged idle period
第五章:多线程通信—wait和notify
还在找网盘资源吗?快点收藏如下几个值得收藏的网盘资源搜索神器吧!
Dynamics 365Online PDF导出及打印
FPGA: Use of the development environment Vivado
阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
[Android]如何使用RecycleView in Kotlin project
How to choose coins and determine the corresponding strategy research
Ali's new launch: Microservices Assault Manual, all operations are written out in PDF
The century-old Nordic luxury home appliance brand ASKO smart wine cabinet in the three-temperature area presents the Chinese Valentine’s Day, and tastes the love of the delicacy
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
多线程(进阶) - 2.5w字总结
攻防世界-PWN-new_easypwn
产品太多了,如何实现一次登录多产品互通?
012_SSS_ Improving Diffusion Model Efficiency Through Patching
【OpenCV】-仿射变换
数据中台建设(十):数据安全管理
This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory