找不到插件[id:'com.github.johnrengelman.shadow',版本:'5.2.0'] [英] Cannot find Plugin [id: 'com.github.johnrengelman.shadow', version: '5.2.0']

查看:225
本文介绍了找不到插件[id:'com.github.johnrengelman.shadow',版本:'5.2.0']的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试创建一个简单的Discord机器人.我完成了代码,并试图通过shadow-> shadowJar导出它.我不断收到此错误消息:

在以下任何来源中均未发现插件[id:'com.github.johnrengelman.shadow',版本:'5.2.0']:

  • Gradle核心插件(插件不在'org.gradle'名称空间中)
  • 插件存储库(无法解析插件工件'com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:5.2.0')在以下存储库中搜索:Gradle中央插件存储库

我试图找到解决方法,但没有成功.我对此很陌生,只具有使用简单Java的经验,例如多维数组,类,对象等.

请帮助!

这是我的build.gradle:

 插件{id'java'id应用程序"id"com.github.johnrengelman.shadow"版本"5.2.0"}mainClassName =主要"组"com.mywebsite"版本"1.0-SNAPSHOT"sourceCompatibility = 1.8储存库{mavenCentral()jcenter()}依赖项{编译'net.dv8tion:JDA:3.5.0_329'} 


解决方案

在撰写此答案时,


解决方案

At the time of writing this answer, the shadow plugin's latest version is 2.0.3.

So I have no idea where you sourced that 5.2.0 from but this is the issue: there is no shadow plugin version 5.2.0 out there.

这篇关于找不到插件[id:'com.github.johnrengelman.shadow',版本:'5.2.0']的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆