gradle
# gradle
Mr.Java.
格物致知,宁静致远.
言忠信,行笃敬。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
idea插件开发dom4j报错:SAXParser cannot be cast to class org.xml.sax.XMLReader
摘要:项目使用dom4j依赖时出现XMLReader报错,原因是IntelliJ IDEA新版自带的xml-apis依赖冲突。解决方案是在build.gradle文件中排除冲突依赖:新版本gradle使用configurations.configureEach{ exclude group: 'xml-apis', module: 'xml-apis' },旧版本则用configurations.all{ exclude group: 'xml-apis', module: 'xml-apis' }原创 2025-02-08 11:45:27 · 758 阅读 · 0 评论 -
idea Gradle7.0+ :Could not find method compile()
compile,runtime,testCompile, andtestRuntime等在Gradle 7.0以后移除了,我们需要用implementation,runtimeOnly,testImplementation, andtestRuntimeOnly 替代翻译 2022-07-09 11:00:38 · 1579 阅读 · 0 评论 -
gradle 打包排除指定的目录或文件
gradle 打包排除指定的目录或文件原创 2022-03-22 10:34:19 · 8335 阅读 · 4 评论 -
idea gradle 加载本地依赖(windows+mac)
假设我们想要的本地jar包在这个路径:mac系统-写法:dependencies { compile fileTree(dir:'src/main/resources/libs',includes:['*.jar'])}windows系统-写法:dependencies { compile fileTree(dir:'/src/main/resources/libs',includes:['*.jar'])}...原创 2022-02-16 16:37:23 · 2474 阅读 · 0 评论 -
Timeout waiting to lock file hash cache.It is currently in use by another Gradle instance.
Timeout waiting to lock file hash cache. It is currently in use by another Gradle instance.原创 2021-11-19 16:10:20 · 1844 阅读 · 0 评论 -
Mac用homebrew brew来安装gradle,gradle路径在哪里? 如何配置idea gradle?
安装路径:/usr/local/opt/gradlemac@adsl-99-11-45-112 gradle % cd /usr/local/opt/gradlemac@adsl-99-11-45-112 gradle % mac@adsl-99-11-45-112 gradle % lsINSTALL_RECEIPT.json NOTICE libexecLICENSE binmac@adsl-99-11-45-112 gradle % 依赖包存放路径:/Users/mac/.原创 2020-07-07 09:32:52 · 5512 阅读 · 1 评论
分享