当前位置:网站首页>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{} 子工程有效
边栏推荐
- 华为轻量级神经网络架构GhostNet再升级,GPU上大显身手的G-GhostNet(IJCV22)
- Go编译原理系列6(类型检查)
- 第五章:多线程通信—wait和notify
- three objects are arranged in a spherical shape around the circumference
- linux下oracle常见操作以及日常积累知识点(函数、定时任务)
- [Unity] [UGUI] [Display text on the screen]
- Development common manual link sharing
- Score interview (1)----related to business
- 告白数字化转型时代:麦聪软件以最简单的方式让企业把数据用起来
- three物体围绕一周呈球形排列
猜你喜欢

Use KUSTO query statement (KQL) to query LOG on Azure Data Explorer Database

Microcontroller: temperature control DS18B20

告白数字化转型时代:麦聪软件以最简单的方式让企业把数据用起来

RT - Thread record (a, RT, RT Thread version - Thread Studio development environment and cooperate CubeMX quick-and-dirty)

three objects are arranged in a spherical shape around the circumference

电气工程的标准是什么

Create a Dapp, why choose Polkadot?

电竞、便捷、高效、安全,盘点OriginOS功能的关键词

Complete image segmentation efficiently based on MindSpore and realize Dice!

高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
随机推荐
[Unity] [UGUI] [Display text on the screen]
R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
项目成本控制如何帮助项目成功?
Still looking for a network backup resources?Hurry up to collect the following network backup resource search artifact it is worth collecting!
反射修改jsessionid实现Session共享
【翻译】混沌网+SkyWalking:为混沌工程提供更好的可观察性
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
[Translation] Chaos Net + SkyWalking: Better observability for chaos engineering
Complete image segmentation efficiently based on MindSpore and realize Dice!
【 temperature warning program DE development 】 event driven model instance
uniapp 连接ibeacon
导火索:OAuth 2.0四种授权登录方式必读
第八章:activiti多用户任务分配
Confessing in the era of digital transformation: Mai Cong Software allows enterprises to use data in the easiest way
Development common manual link sharing
【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different
Technical dry goods | Hausdorff distance for image segmentation based on MindSpore
技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离
The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
E-sports, convenience, efficiency, security, key words for OriginOS functions