当前位置:网站首页>idea Gradle7.0+ :Could not find method compile()
idea Gradle7.0+ :Could not find method compile()
2022-07-27 13:45:00 【JAVA|Mr.Java】
Could not find method compile() for arguments Gradle
Bazer Con Original question :
Looked around for this solution for much too long now, and I'm not sure if I missed it or just misstyped something, but my Gradle script will not compile. I am migrating to Gradle, and am very new with it. I am very used to using Maven for dependency management, but Gradle seems best me for now. From running this snippet of code.
Translate the following :
Looking for this solution has been too long , I'm not sure if I missed it , Or just mistakenly input something , But mine Gradle The script cannot be compiled . I am moving to Gradle, And I'm very strange to it . I'm very used to using Maven Manage dependencies , but Gradle It seems to be the most suitable for me at present . Run this code :
dependencies {
compile group: 'org.bukkit', name: 'bukkit', version: '1.7.9-R0.1-SNAPSHOT'
compile('io.ibj:MattLib:1.1-SNAPSHOT') {
exclude group: 'de.bananaco'
exclude 'net.milkbowl:vault:1.2.27'
}
compile group: 'net.citizensnpcs', name: 'citizens', version: '2.0.12'
compile group: 'com.sk89q', name: 'worldedit', version: '5.6.1'
compile group: 'com.sk89q', name: 'worldguard', version: '5.9'
compile group: 'net.milkbowl', name: 'vault', version: '1.2.12'
compile fileTree(dir: 'libs', includes: ['*.jar'])
}Report errors :
Could not find method compile() for arguments [[io.ibj:MattLib:1.1-SNAPSHOT], [email protected]] on root project 'project'ashelkov Answer the original :
Note that the compile, runtime, testCompile, and testRuntime configurations introduced by the Java plugin have been deprecated since Gradle 4.10 (Aug 27, 2018), and were finally removed in Gradle 7.0 (Apr 9, 2021).
The aforementioned configurations should be replaced by implementation, runtimeOnly, testImplementation, and testRuntimeOnly, respectively.
Translate the following :
compile, runtime, testCompile, and testRuntime Wait in Gradle 7.0 Removed later , We need to use implementation, runtimeOnly, testImplementation, and testRuntimeOnly I. substitution .
for example :compile Change to implementation.
Original translation :java - Could not find method compile() for arguments Gradle - Stack Overflow
https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle
边栏推荐
- uniapp防止连续点击出错
- MFC FTP creates multi-level folders and uploads files to the specified directory of FTP
- Vertical and horizontal shooting range - the mystery of the picture
- Can I only use tidb binlog tool to synchronize tidb to MySQL in real time?
- leetcode——83,24; Machine learning - neural networks
- Fiddler抓包工具+夜神模拟器
- Data enhancement in image processing
- How to maintain slip ring equipment
- Gray histogram
- js基础知识整理之 —— 数组
猜你喜欢

Verilog's system tasks - $fopen, $fclose and $fddisplay, $fwrite, $fstrobe, $fmonitor

3D laser slam:aloam---ceres optimization part and code analysis
![[C Advanced] pointer array vs array pointer](/img/1e/33f9cc9446dcad8cdb78babbb5a22c.jpg)
[C Advanced] pointer array vs array pointer

Seata 在蚂蚁国际银行业务的落地实践

What services will the futures company provide after opening an account?

OPPO 自研大规模知识图谱及其在数智工程中的应用

Fiddler抓包工具+夜神模拟器

for .. of可用于哪些数据的遍历

eBPF/Ftrace

剑指Offer 07 重建二叉树 -- 从中序与后序遍历序列构造二叉树
随机推荐
English grammar_ Definite article the_ Small details
汇量科技app出海好地:火了十几年,美国凭什么还是出海首选淘金地
【C语言入门】ZZULIOJ 1021-1025
egg-swagger-doc 图形验证码解决方案
基于frp实现内网穿透——借助公网服务器实现ssh远程连接内网服务器
Classification and application of slip rings
数据库内核开发人员,值一个马克杯!!!
《数字经济 科技向善》大咖对谈干货来啦
Meshlab farthest point sampling (FPS)
16-VMware Horizon 2203 虚拟桌面-Win10 自动桌面池完整克隆专用(十六)
Rotation chart
Using ebpf to detect rootkit vulnerabilities
[introduction to C language] zzulioj 1021-1025
js回调函数(callback)
Interviewers often ask: how to set up a "message queue" and "delayed message queue"?
SwiftUI 地图大全之 使用 MapKit 进行搜索
【LeetCode】592. 分数加减运算
面试官常问:如何手撸一个“消息队列”和“延迟消息队列”?
A brief analysis of the four process pools
List map basic notes