无法应用插件 [id 'net.corda.plugins.cordformation']
Failed to apply plugin [id 'net.corda.plugins.cordformation']
我尝试将 yo-cordapp 从 2.0 版迁移到 3.0 版,但出现此错误。
FAILURE: Build failed with an exception.
其中:
构建文件 '/home/atul/Documents/mg/IdeaProjects/yo-cordapp/build.gradle' 行:36
出了什么问题:
评估根项目 'yo'.
时出现问题
Failed to apply plugin [id 'net.corda.plugins.cordformation']
Could not create plugin of type 'Cordformation'.
Could not initialize class net.corda.plugins.Cordformation
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --debug 选项以获得更多日志输出。
构建失败
总时间:0.513 秒
停止了 0 个工作守护进程。
收到的结果 Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file '/home/atul/Documents/mg/IdeaProjects/yo-cordapp/build.gradle' line: 36
从守护程序 DaemonInfo{pid=1439,address=[1bb69a7c-e166-4da4-be23-025402c62d96 port:36544,addresses:[/0:0:0:0 评估根项目 'yo'.] 时出现问题:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1527564107106, context=DefaultDaemonContext[uid=dbe9d9f3-b86b-448f-8d35-648c4aad50fd,javaHome=/usr/lib/jvm/java-8-oracle,daemonRegistryDir= /root/.gradle/daemon,pid=1439,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant]}(构建应该完成)。
为什么我会收到这个错误
[PS:我知道此迁移已经完成,但我在尝试时遇到此错误。]
您需要应用新的 cordapp
插件。参见 https://github.com/corda/cordapp-example/blob/release-V3/kotlin-source/build.gradle#L11。
我尝试将 yo-cordapp 从 2.0 版迁移到 3.0 版,但出现此错误。
FAILURE: Build failed with an exception.
其中: 构建文件 '/home/atul/Documents/mg/IdeaProjects/yo-cordapp/build.gradle' 行:36
出了什么问题: 评估根项目 'yo'.
时出现问题Failed to apply plugin [id 'net.corda.plugins.cordformation'] Could not create plugin of type 'Cordformation'. Could not initialize class net.corda.plugins.Cordformation
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --debug 选项以获得更多日志输出。
构建失败
总时间:0.513 秒 停止了 0 个工作守护进程。 收到的结果 Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file '/home/atul/Documents/mg/IdeaProjects/yo-cordapp/build.gradle' line: 36 从守护程序 DaemonInfo{pid=1439,address=[1bb69a7c-e166-4da4-be23-025402c62d96 port:36544,addresses:[/0:0:0:0 评估根项目 'yo'.] 时出现问题:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1527564107106, context=DefaultDaemonContext[uid=dbe9d9f3-b86b-448f-8d35-648c4aad50fd,javaHome=/usr/lib/jvm/java-8-oracle,daemonRegistryDir= /root/.gradle/daemon,pid=1439,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant]}(构建应该完成)。
为什么我会收到这个错误
[PS:我知道此迁移已经完成,但我在尝试时遇到此错误。]
您需要应用新的 cordapp
插件。参见 https://github.com/corda/cordapp-example/blob/release-V3/kotlin-source/build.gradle#L11。